do not show denoising strength when highres fix is not enabled

This commit is contained in:
AUTOMATIC 2022-09-19 17:41:46 +03:00
parent 028fc25f28
commit 5b6dea5698

View file

@ -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)