diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-29 06:11:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-29 06:11:00 +0000 |
commit | 76086f6668bddba82d8b47e0f3c5c6068990cbde (patch) | |
tree | 791d0a85ed84f93188e0220c0ffb90e0347f4059 /modules/hypernetworks/ui.py | |
parent | 403c5dba86f0faac6746df24d16e4d08aab8c9c5 (diff) | |
parent | 02b547861e11632c5a6dbe15fb0d219aa167d0c1 (diff) | |
download | stable-diffusion-webui-gfx803-76086f6668bddba82d8b47e0f3c5c6068990cbde.tar.gz stable-diffusion-webui-gfx803-76086f6668bddba82d8b47e0f3c5c6068990cbde.tar.bz2 stable-diffusion-webui-gfx803-76086f6668bddba82d8b47e0f3c5c6068990cbde.zip |
Merge branch 'master' into modal-save-button-and-shortcut
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..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.
|