aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hypernetworks/ui.py
diff options
context:
space:
mode:
authordiscus0434 <discus0434@gmail.com>2022-10-20 00:10:45 +0000
committerdiscus0434 <discus0434@gmail.com>2022-10-20 00:10:45 +0000
commit6f98e89486f55b0e4657e96ce640cf1c4675d187 (patch)
treeb36d7b0e1eadbee670e7b11714f6d04a28ae2483 /modules/hypernetworks/ui.py
parent634acdd9546ca84a9fc75d5ecfe5650af566dd8e (diff)
downloadstable-diffusion-webui-gfx803-6f98e89486f55b0e4657e96ce640cf1c4675d187.tar.gz
stable-diffusion-webui-gfx803-6f98e89486f55b0e4657e96ce640cf1c4675d187.tar.bz2
stable-diffusion-webui-gfx803-6f98e89486f55b0e4657e96ce640cf1c4675d187.zip
update
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 08f75f15..83f9547b 100644
--- a/modules/hypernetworks/ui.py
+++ b/modules/hypernetworks/ui.py
@@ -10,7 +10,7 @@ from modules import sd_hijack, shared, devices
from modules.hypernetworks import hypernetwork
-def create_hypernetwork(name, enable_sizes, layer_structure=None, add_layer_norm=False):
+def create_hypernetwork(name, enable_sizes, layer_structure=None, add_layer_norm=False, activation_func=None):
fn = os.path.join(shared.cmd_opts.hypernetwork_dir, f"{name}.pt")
assert not os.path.exists(fn), f"file {fn} already exists"
@@ -22,6 +22,7 @@ def create_hypernetwork(name, enable_sizes, layer_structure=None, add_layer_norm
enable_sizes=[int(x) for x in enable_sizes],
layer_structure=layer_structure,
add_layer_norm=add_layer_norm,
+ activation_func=activation_func,
)
hypernet.save(fn)