aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hypernetworks/ui.py
diff options
context:
space:
mode:
authorevshiron <evshiron@gmail.com>2022-10-29 19:45:29 +0000
committerevshiron <evshiron@gmail.com>2022-10-29 19:45:29 +0000
commit6b719c49b193a7dfeb64aacfdc8437037e07a2d1 (patch)
tree2ec883e44f3f959688ba65a4c5f194470bc7d467 /modules/hypernetworks/ui.py
parentfddb4883f4a408b3464076465e1b0949ebe0fc30 (diff)
parent35c45df28b303a05d56a13cb56d4046f08cf8c25 (diff)
downloadstable-diffusion-webui-gfx803-6b719c49b193a7dfeb64aacfdc8437037e07a2d1.tar.gz
stable-diffusion-webui-gfx803-6b719c49b193a7dfeb64aacfdc8437037e07a2d1.tar.bz2
stable-diffusion-webui-gfx803-6b719c49b193a7dfeb64aacfdc8437037e07a2d1.zip
Merge branch 'master' into feat/progress-api
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.