diff options
author | catboxanon <122327233+catboxanon@users.noreply.github.com> | 2023-08-04 08:42:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 08:42:35 +0000 |
commit | 7c5480eb969a421786089c6f8bc664a7444e75ee (patch) | |
tree | 40e07e5af1e4ec746b34af337584f8fb56e2b536 /modules/ui.py | |
parent | 67312653d766fbbebaecae87b26d5e49789970d3 (diff) | |
download | stable-diffusion-webui-gfx803-7c5480eb969a421786089c6f8bc664a7444e75ee.tar.gz stable-diffusion-webui-gfx803-7c5480eb969a421786089c6f8bc664a7444e75ee.tar.bz2 stable-diffusion-webui-gfx803-7c5480eb969a421786089c6f8bc664a7444e75ee.zip |
Cleanup hr infotext paste check mk2
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py index cc298031..8b38d213 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -591,7 +591,7 @@ 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 and any(x in ["Hires upscale", "Hires upscaler"] for x 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"),
|