diff options
author | Dynamic <bradje@naver.com> | 2022-10-29 22:33:06 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-29 22:33:06 +0900 |
commit | 3d36d62d61425a2538270c489dc5fe827c125ad1 (patch) | |
tree | d3ebb7d5f5fa23f355a02288f0c645c102b8e6a0 /modules/hypernetworks/ui.py | |
parent | a668444110743cd163474ec563b0e69025dea3d2 (diff) | |
parent | 35c45df28b303a05d56a13cb56d4046f08cf8c25 (diff) |
Merge branch 'AUTOMATIC1111:master' into kr-localization
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.
|