diff options
author | catboxanon <122327233+catboxanon@users.noreply.github.com> | 2023-08-04 08:03:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 08:03:37 +0000 |
commit | d89a915b74cd999e13e559d6a702c7da9404db5e (patch) | |
tree | 903554a327259d4c9e6c4e3f124ff0503e48eacf /modules/ui.py | |
parent | f0c1063a707a4a43823b0ed00e2a8eeb22a9ed0a (diff) | |
download | stable-diffusion-webui-gfx803-d89a915b74cd999e13e559d6a702c7da9404db5e.tar.gz stable-diffusion-webui-gfx803-d89a915b74cd999e13e559d6a702c7da9404db5e.tar.bz2 stable-diffusion-webui-gfx803-d89a915b74cd999e13e559d6a702c7da9404db5e.zip |
Only enable hr fix if hr scale or upscale in infotext on paste
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 822a7660..4628bc89 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -591,8 +591,8 @@ def create_ui(): (seed_resize_from_h, "Seed resize from-2"),
(toprow.ui_styles.dropdown, 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)),
+ (enable_hr, lambda d: "Denoising strength" in d and any(x in ["Hires upscale", "Hires upscaler"] for x in d)),
+ (hr_options, lambda d: gr.Row.update(visible="Denoising strength" in d and any(x in ["Hires upscale", "Hires upscaler"] for x in d))),
(hr_scale, "Hires upscale"),
(hr_upscaler, "Hires upscaler"),
(hr_second_pass_steps, "Hires steps"),
|