diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-28 14:18:47 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-28 14:18:47 +0000 |
commit | b7d2af8c7fa48d6eef7517a6fbc63a3507c638d4 (patch) | |
tree | cc72768e4be5a9e6f45e3273f25b141860bf347d /modules/shared.py | |
parent | 5d14f282c2812888275902be4b552681f942dbfd (diff) | |
download | stable-diffusion-webui-gfx803-b7d2af8c7fa48d6eef7517a6fbc63a3507c638d4.tar.gz stable-diffusion-webui-gfx803-b7d2af8c7fa48d6eef7517a6fbc63a3507c638d4.tar.bz2 stable-diffusion-webui-gfx803-b7d2af8c7fa48d6eef7517a6fbc63a3507c638d4.zip |
add dropdowns in settings for hypernets and loras
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/shared.py b/modules/shared.py index 474fcc42..eb04e811 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -405,7 +405,6 @@ options_templates.update(options_section(('sd', "Stable Diffusion"), { "enable_batch_seeds": OptionInfo(True, "Make K-diffusion samplers produce same images in a batch as when making a single image"),
"comma_padding_backtrack": OptionInfo(20, "Increase coherency by padding from the last comma within n tokens when using more than 75 tokens", gr.Slider, {"minimum": 0, "maximum": 74, "step": 1 }),
"CLIP_stop_at_last_layers": OptionInfo(1, "Clip skip", gr.Slider, {"minimum": 1, "maximum": 12, "step": 1}),
- "extra_networks_default_multiplier": OptionInfo(1.0, "Multiplier for extra networks", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}),
"upcast_attn": OptionInfo(False, "Upcast cross attention layer to float32"),
}))
@@ -431,7 +430,9 @@ options_templates.update(options_section(('interrogate', "Interrogate Options"), }))
options_templates.update(options_section(('extra_networks', "Extra Networks"), {
- "extra_networks_default_view": OptionInfo("cards", "Default view for Extra Networks", gr.Dropdown, { "choices": ["cards", "thumbs"] }),
+ "extra_networks_default_view": OptionInfo("cards", "Default view for Extra Networks", gr.Dropdown, {"choices": ["cards", "thumbs"]}),
+ "extra_networks_default_multiplier": OptionInfo(1.0, "Multiplier for extra networks", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}),
+ "sd_hypernetwork": OptionInfo("None", "Add hypernetwork to prompt", gr.Dropdown, lambda: {"choices": [""] + [x for x in hypernetworks.keys()]}, refresh=reload_hypernetworks),
}))
options_templates.update(options_section(('ui', "User interface"), {
|