aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelBottomless <35677394+aria1th@users.noreply.github.com>2022-10-28 23:36:50 +0000
committerGitHub <noreply@github.com>2022-10-28 23:36:50 +0000
commitf361e804ebaa5af4a10711ece2522869fb64a4c6 (patch)
tree20128b8e5014d7abdabfd7698c9ce69a1d7d539a
parent462e6ba6675bd14c0f82e465423a0eedfff82372 (diff)
downloadstable-diffusion-webui-gfx803-f361e804ebaa5af4a10711ece2522869fb64a4c6.tar.gz
stable-diffusion-webui-gfx803-f361e804ebaa5af4a10711ece2522869fb64a4c6.tar.bz2
stable-diffusion-webui-gfx803-f361e804ebaa5af4a10711ece2522869fb64a4c6.zip
Re enable linear
-rw-r--r--modules/hypernetworks/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/hypernetworks/ui.py b/modules/hypernetworks/ui.py
index c2d4b51c..aad09ffc 100644
--- a/modules/hypernetworks/ui.py
+++ b/modules/hypernetworks/ui.py
@@ -9,7 +9,7 @@ from modules import devices, sd_hijack, shared
from modules.hypernetworks import hypernetwork
not_available = ["hardswish", "multiheadattention"]
-keys = list(x for x in hypernetwork.HypernetworkModule.activation_dict.keys() if x not in not_available)
+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.