Merge pull request #3717 from benkyoujouzu/master

Add missing support for linear activation in hypernetwork
This commit is contained in:
AUTOMATIC1111 2022-10-29 07:30:14 +03:00 committed by GitHub
commit d3b4b9d7ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,7 @@ from statistics import stdev, mean
class HypernetworkModule(torch.nn.Module):
multiplier = 1.0
activation_dict = {
"linear": torch.nn.Identity,
"relu": torch.nn.ReLU,
"leakyrelu": torch.nn.LeakyReLU,
"elu": torch.nn.ELU,