aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hypernetworks/ui.py
diff options
context:
space:
mode:
authortimntorres <116157310+timntorres@users.noreply.github.com>2022-10-29 07:31:23 +0000
committerGitHub <noreply@github.com>2022-10-29 07:31:23 +0000
commite98f72be334bbcb2533e224f4983866d1d39028e (patch)
tree6077fb89216a0728f5769f6461c8caf3a1caf802 /modules/hypernetworks/ui.py
parentdb5a354c489bfd1c95e0bbf9af12ab8b5d6fe170 (diff)
parentbeb6fc29798d82f1b08a34cf5dd79e4ab29d4cd0 (diff)
downloadstable-diffusion-webui-gfx803-e98f72be334bbcb2533e224f4983866d1d39028e.tar.gz
stable-diffusion-webui-gfx803-e98f72be334bbcb2533e224f4983866d1d39028e.tar.bz2
stable-diffusion-webui-gfx803-e98f72be334bbcb2533e224f4983866d1d39028e.zip
Merge branch 'AUTOMATIC1111:master' into 3825-save-hypernet-strength-to-info
Diffstat (limited to 'modules/hypernetworks/ui.py')
-rw-r--r--modules/hypernetworks/ui.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/hypernetworks/ui.py b/modules/hypernetworks/ui.py
index 2c6c0470..aad09ffc 100644
--- a/modules/hypernetworks/ui.py
+++ b/modules/hypernetworks/ui.py
@@ -8,7 +8,8 @@ import modules.textual_inversion.textual_inversion
from modules import devices, sd_hijack, shared
from modules.hypernetworks import hypernetwork
-keys = list(hypernetwork.HypernetworkModule.activation_dict.keys())
+not_available = ["hardswish", "multiheadattention"]
+keys = ["linear"] + list(x for x in hypernetwork.HypernetworkModule.activation_dict.keys() if x not in not_available)
def create_hypernetwork(name, enable_sizes, overwrite_old, layer_structure=None, activation_func=None, weight_init=None, add_layer_norm=False, use_dropout=False):
# Remove illegal characters from name.