diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-19 14:41:46 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-19 14:41:46 +0000 |
commit | 5b6dea56984391f19859a4b3e06d8dfc13438d6b (patch) | |
tree | ce2803abce4cee6d02e5b987232b66f80779cd8e /modules/txt2img.py | |
parent | 028fc25f28c38b89220694c676070f49c34a1d2b (diff) | |
download | stable-diffusion-webui-gfx803-5b6dea56984391f19859a4b3e06d8dfc13438d6b.tar.gz stable-diffusion-webui-gfx803-5b6dea56984391f19859a4b3e06d8dfc13438d6b.tar.bz2 stable-diffusion-webui-gfx803-5b6dea56984391f19859a4b3e06d8dfc13438d6b.zip |
do not show denoising strength when highres fix is not enabled
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r-- | modules/txt2img.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py index 7c6de2e7..0e6a89ab 100644 --- a/modules/txt2img.py +++ b/modules/txt2img.py @@ -29,8 +29,8 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2: restore_faces=restore_faces,
tiling=tiling,
enable_hr=enable_hr,
- scale_latent=scale_latent,
- denoising_strength=denoising_strength,
+ scale_latent=scale_latent if enable_hr else None,
+ denoising_strength=denoising_strength if enable_hr else None,
)
print(f"\ntxt2img: {prompt}", file=shared.progress_print_out)
|