diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-04 08:52:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 08:52:17 +0000 |
commit | 6391128b415b2ba9790f02cdd4863d160584111b (patch) | |
tree | 0a6d7d7e4f06d246c058890c6a92b8b8dfbe6e3c /modules/ui.py | |
parent | e81b4317011c1ecaa22dfbcf38181dbf01f2a05f (diff) | |
parent | 7c5480eb969a421786089c6f8bc664a7444e75ee (diff) | |
download | stable-diffusion-webui-gfx803-6391128b415b2ba9790f02cdd4863d160584111b.tar.gz stable-diffusion-webui-gfx803-6391128b415b2ba9790f02cdd4863d160584111b.tar.bz2 stable-diffusion-webui-gfx803-6391128b415b2ba9790f02cdd4863d160584111b.zip |
Merge pull request #12306 from catboxanon/fix/hires-infotext-paste
Only enable hires fix if hires scale or upscaler found in params for infotext 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..8b38d213 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 ("Hires upscale" in d or "Hires upscaler" in d or "Hires resize-1" in d)),
+ (hr_options, lambda d: gr.Row.update(visible="Denoising strength" in d and ("Hires upscale" in d or "Hires upscaler" in d or "Hires resize-1" in d))),
(hr_scale, "Hires upscale"),
(hr_upscaler, "Hires upscaler"),
(hr_second_pass_steps, "Hires steps"),
|