diff options
author | discus0434 <discus0434@gmail.com> | 2022-10-18 15:51:36 +0000 |
---|---|---|
committer | discus0434 <discus0434@gmail.com> | 2022-10-18 15:51:36 +0000 |
commit | 6021f7a75f7b5208a2be15cda5526028152f922d (patch) | |
tree | 0e118b6495ab32b18684cb637ea372fd896ca437 /modules/shared.py | |
parent | c1093b8051606f0ac90506b7114c4b55d0447c70 (diff) | |
download | stable-diffusion-webui-gfx803-6021f7a75f7b5208a2be15cda5526028152f922d.tar.gz stable-diffusion-webui-gfx803-6021f7a75f7b5208a2be15cda5526028152f922d.tar.bz2 stable-diffusion-webui-gfx803-6021f7a75f7b5208a2be15cda5526028152f922d.zip |
add options to custom hypernetwork layer structure
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py index c0d87168..c87ce70e 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -13,7 +13,7 @@ import modules.memmon import modules.sd_models
import modules.styles
import modules.devices as devices
-from modules import sd_samplers, sd_models, localization
+from modules import sd_models, sd_samplers, localization
from modules.hypernetworks import hypernetwork
from modules.paths import models_path, script_path, sd_path
@@ -258,6 +258,8 @@ options_templates.update(options_section(('sd', "Stable Diffusion"), { "sd_model_checkpoint": OptionInfo(None, "Stable Diffusion checkpoint", gr.Dropdown, lambda: {"choices": modules.sd_models.checkpoint_tiles()}, refresh=sd_models.list_models),
"sd_checkpoint_cache": OptionInfo(0, "Checkpoints to cache in RAM", gr.Slider, {"minimum": 0, "maximum": 10, "step": 1}),
"sd_hypernetwork": OptionInfo("None", "Hypernetwork", gr.Dropdown, lambda: {"choices": ["None"] + [x for x in hypernetworks.keys()]}, refresh=reload_hypernetworks),
+ "sd_hypernetwork_layer_structure": OptionInfo(None, "Hypernetwork layer structure Default: (1,2,1).", gr.Dropdown, lambda: {"choices": [(1, 2, 1), (1, 2, 2, 1), (1, 2, 4, 2, 1)]}),
+ "sd_hypernetwork_add_layer_norm": OptionInfo(False, "Add layer normalization to hypernetwork architecture."),
"sd_hypernetwork_strength": OptionInfo(1.0, "Hypernetwork strength", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.001}),
"img2img_color_correction": OptionInfo(False, "Apply color correction to img2img results to match original colors."),
"save_images_before_color_correction": OptionInfo(False, "Save a copy of image before applying color correction to img2img results"),
|