diff options
author | AngelBottomless <35677394+aria1th@users.noreply.github.com> | 2022-10-27 06:40:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 06:40:24 +0000 |
commit | 462e6ba6675bd14c0f82e465423a0eedfff82372 (patch) | |
tree | 905a4025eb5105b2a42525c0fa3cbd69036b2ebe /modules/hypernetworks/ui.py | |
parent | 737eb28faca8be2bb996ee0930ec77d1f7ebd939 (diff) | |
download | stable-diffusion-webui-gfx803-462e6ba6675bd14c0f82e465423a0eedfff82372.tar.gz stable-diffusion-webui-gfx803-462e6ba6675bd14c0f82e465423a0eedfff82372.tar.bz2 stable-diffusion-webui-gfx803-462e6ba6675bd14c0f82e465423a0eedfff82372.zip |
Disable unavailable or duplicate options
Diffstat (limited to 'modules/hypernetworks/ui.py')
-rw-r--r-- | modules/hypernetworks/ui.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/hypernetworks/ui.py b/modules/hypernetworks/ui.py index 2c6c0470..c2d4b51c 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 = 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.
|