aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hypernetworks/hypernetwork.py
diff options
context:
space:
mode:
authorAngelBottomless <35677394+aria1th@users.noreply.github.com>2022-10-25 06:24:59 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-26 06:17:01 +0000
commit7207e3bf49ed000464d288cd67e02f0ba8614dc3 (patch)
tree860b17a61a4644d57b0dc5f13dd0d5e9d6e30733 /modules/hypernetworks/hypernetwork.py
parentde096d0ce752c96e45508dcc7b9e84f7dbe10cca (diff)
downloadstable-diffusion-webui-gfx803-7207e3bf49ed000464d288cd67e02f0ba8614dc3.tar.gz
stable-diffusion-webui-gfx803-7207e3bf49ed000464d288cd67e02f0ba8614dc3.tar.bz2
stable-diffusion-webui-gfx803-7207e3bf49ed000464d288cd67e02f0ba8614dc3.zip
remove duplicate keys and lowercase
Diffstat (limited to 'modules/hypernetworks/hypernetwork.py')
-rw-r--r--modules/hypernetworks/hypernetwork.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/hypernetworks/hypernetwork.py b/modules/hypernetworks/hypernetwork.py
index afbcdff8..842b6447 100644
--- a/modules/hypernetworks/hypernetwork.py
+++ b/modules/hypernetworks/hypernetwork.py
@@ -32,7 +32,7 @@ class HypernetworkModule(torch.nn.Module):
"tanh": torch.nn.Tanh,
"sigmoid": torch.nn.Sigmoid,
}
- activation_dict.update({cls_name: cls_obj for cls_name, cls_obj in inspect.getmembers(torch.nn.modules.activation) if inspect.isclass(cls_obj) and cls_obj.__module__ == 'torch.nn.modules.activation'})
+ activation_dict.update({cls_name.lower(): cls_obj for cls_name, cls_obj in inspect.getmembers(torch.nn.modules.activation) if inspect.isclass(cls_obj) and cls_obj.__module__ == 'torch.nn.modules.activation'})
def __init__(self, dim, state_dict=None, layer_structure=None, activation_func=None, weight_init='Normal', add_layer_norm=False, use_dropout=False):
super().__init__()