diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-11-04 09:02:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-04 09:02:21 +0300 |
commit | 26108a7f1c0d269bc67460c04a0852a9eb23f166 (patch) | |
tree | 76a0e42461d620764ad810c5b8dbd5b28d757519 /modules/ui.py | |
parent | 2cf3d2ac15530dbc8fdb486a4dac03b710972445 (diff) | |
parent | 4918eb6ce484caa4bc5a9f668bb466a5122a9c87 (diff) |
Merge pull request #3698 from guaneec/hn-activation
Remove activation from final layer of Hypernetworks
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui.py b/modules/ui.py index 6461002a..b2b1c854 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1182,8 +1182,8 @@ def create_ui(wrap_gradio_gpu_call): new_hypernetwork_name = gr.Textbox(label="Name")
new_hypernetwork_sizes = gr.CheckboxGroup(label="Modules", value=["768", "320", "640", "1280"], choices=["768", "320", "640", "1280"])
new_hypernetwork_layer_structure = gr.Textbox("1, 2, 1", label="Enter hypernetwork layer structure", placeholder="1st and last digit must be 1. ex:'1, 2, 1'")
- new_hypernetwork_activation_func = gr.Dropdown(value="linear", label="Select activation function of hypernetwork", choices=modules.hypernetworks.ui.keys)
- new_hypernetwork_initialization_option = gr.Dropdown(value = "Normal", label="Select Layer weights initialization. relu-like - Kaiming, sigmoid-like - Xavier is recommended", choices=["Normal", "KaimingUniform", "KaimingNormal", "XavierUniform", "XavierNormal"])
+ new_hypernetwork_activation_func = gr.Dropdown(value="linear", label="Select activation function of hypernetwork. Recommended : Swish / Linear(none)", choices=modules.hypernetworks.ui.keys)
+ new_hypernetwork_initialization_option = gr.Dropdown(value = "Normal", label="Select Layer weights initialization. Recommended: Kaiming for relu-like, Xavier for sigmoid-like, Normal otherwise", choices=["Normal", "KaimingUniform", "KaimingNormal", "XavierUniform", "XavierNormal"])
new_hypernetwork_add_layer_norm = gr.Checkbox(label="Add layer normalization")
new_hypernetwork_use_dropout = gr.Checkbox(label="Use dropout")
overwrite_old_hypernetwork = gr.Checkbox(value=False, label="Overwrite Old Hypernetwork")
|