diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-10 08:29:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 08:29:26 +0000 |
commit | 7ec275fae799f19cdb1756412ae75ca6bfe251cd (patch) | |
tree | 54deee50926938b7be198b608bcfbdae7e7cb370 /modules/hypernetworks/ui.py | |
parent | bd4587d2f5b70ed951d2c17f25a4622fc1cb31c2 (diff) | |
parent | a4a5475cfa3c68af6cb046081002a72f862ce4be (diff) | |
download | stable-diffusion-webui-gfx803-7ec275fae799f19cdb1756412ae75ca6bfe251cd.tar.gz stable-diffusion-webui-gfx803-7ec275fae799f19cdb1756412ae75ca6bfe251cd.tar.bz2 stable-diffusion-webui-gfx803-7ec275fae799f19cdb1756412ae75ca6bfe251cd.zip |
Merge pull request #6590 from aria1th/varaible-dropout-rate-rework
Variable dropout rate
Diffstat (limited to 'modules/hypernetworks/ui.py')
-rw-r--r-- | modules/hypernetworks/ui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/hypernetworks/ui.py b/modules/hypernetworks/ui.py index e7f9e593..81e3f519 100644 --- a/modules/hypernetworks/ui.py +++ b/modules/hypernetworks/ui.py @@ -9,8 +9,8 @@ from modules import devices, sd_hijack, shared not_available = ["hardswish", "multiheadattention"]
keys = list(x for x in modules.hypernetworks.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):
- filename = modules.hypernetworks.hypernetwork.create_hypernetwork(name, enable_sizes, overwrite_old, layer_structure, activation_func, weight_init, add_layer_norm, use_dropout)
+def create_hypernetwork(name, enable_sizes, overwrite_old, layer_structure=None, activation_func=None, weight_init=None, add_layer_norm=False, use_dropout=False, dropout_structure=None):
+ filename = modules.hypernetworks.hypernetwork.create_hypernetwork(name, enable_sizes, overwrite_old, layer_structure, activation_func, weight_init, add_layer_norm, use_dropout, dropout_structure)
return gr.Dropdown.update(choices=sorted([x for x in shared.hypernetworks.keys()])), f"Created: {filename}", ""
|