diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-21 06:49:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 06:49:32 +0000 |
commit | d6bd6a425dd3ed6d9ea10912a17a3618ce68ca30 (patch) | |
tree | dde93ee7ce75ce736fe927e99c461cfa0d26fcae /modules/hypernetworks/ui.py | |
parent | d23a46ceaa76af2847f11172f32c92665c268b1b (diff) | |
parent | c23f666dba2b484d521d2dc4be91cf9e09312647 (diff) | |
download | stable-diffusion-webui-gfx803-d6bd6a425dd3ed6d9ea10912a17a3618ce68ca30.tar.gz stable-diffusion-webui-gfx803-d6bd6a425dd3ed6d9ea10912a17a3618ce68ca30.tar.bz2 stable-diffusion-webui-gfx803-d6bd6a425dd3ed6d9ea10912a17a3618ce68ca30.zip |
Merge branch 'master' into master
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 e0741d08..1a5a27d8 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)
|