From 5b6dea56984391f19859a4b3e06d8dfc13438d6b Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Mon, 19 Sep 2022 17:41:46 +0300 Subject: [PATCH] do not show denoising strength when highres fix is not enabled --- modules/txt2img.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/txt2img.py b/modules/txt2img.py index 7c6de2e77..0e6a89abd 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)