aboutsummaryrefslogtreecommitdiff
path: root/modules/hypernetworks
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-10-29 07:29:02 +0300
committerGitHub <noreply@github.com>2022-10-29 07:29:02 +0300
commitfc89495df3a760dba571550ccbb625565bf61199 (patch)
treeae6d5458b33380fecb7edc8d2a93b0ae92f0dfe9 /modules/hypernetworks
parentd5f31f1e14882f60ac220ac0bebf267d1511adb9 (diff)
parentf361e804ebaa5af4a10711ece2522869fb64a4c6 (diff)
Merge pull request #3771 from aria1th/patch-12
Disable unavailable or duplicate options for Activation functions
Diffstat (limited to 'modules/hypernetworks')
-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.