diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-06-04 07:56:48 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-06-04 07:56:48 +0000 |
commit | f98f4f73aa4898c754681f411608df5f248619f6 (patch) | |
tree | 6b8a1f63a622f373258a1c64ea5feb8751ceb071 /modules/ui.py | |
parent | 30bbb8bce377e627be6c582315691358d9b611d8 (diff) | |
download | stable-diffusion-webui-gfx803-f98f4f73aa4898c754681f411608df5f248619f6.tar.gz stable-diffusion-webui-gfx803-f98f4f73aa4898c754681f411608df5f248619f6.tar.bz2 stable-diffusion-webui-gfx803-f98f4f73aa4898c754681f411608df5f248619f6.zip |
infer styles from prompts, and an option to control the behavior
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py index 988b2003..7ae33ab1 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -621,6 +621,7 @@ def create_ui(): (subseed_strength, "Variation seed strength"),
(seed_resize_from_w, "Seed resize from-1"),
(seed_resize_from_h, "Seed resize from-2"),
+ (txt2img_prompt_styles, lambda d: d["Styles array"] if isinstance(d.get("Styles array"), list) else gr.update()),
(denoising_strength, "Denoising strength"),
(enable_hr, lambda d: "Denoising strength" in d),
(hr_options, lambda d: gr.Row.update(visible="Denoising strength" in d)),
@@ -1036,6 +1037,7 @@ def create_ui(): (subseed_strength, "Variation seed strength"),
(seed_resize_from_w, "Seed resize from-1"),
(seed_resize_from_h, "Seed resize from-2"),
+ (img2img_prompt_styles, lambda d: d["Styles array"] if isinstance(d.get("Styles array"), list) else gr.update()),
(denoising_strength, "Denoising strength"),
(mask_blur, "Mask blur"),
*modules.scripts.scripts_img2img.infotext_fields
|