diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-03-28 19:20:31 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-03-28 19:20:31 +0000 |
commit | 3856ada5cc9ac4124e20ff311ce7aa77330845d9 (patch) | |
tree | ff3afe78bffff8eaed160fb6dbe9b0eb6329b619 /modules/img2img.py | |
parent | 433b3ab7017556a19173a86d1215ed0a0b5b1396 (diff) | |
download | stable-diffusion-webui-gfx803-3856ada5cc9ac4124e20ff311ce7aa77330845d9.tar.gz stable-diffusion-webui-gfx803-3856ada5cc9ac4124e20ff311ce7aa77330845d9.tar.bz2 stable-diffusion-webui-gfx803-3856ada5cc9ac4124e20ff311ce7aa77330845d9.zip |
do not add mask blur to infotext if there is no mask
Diffstat (limited to 'modules/img2img.py')
-rw-r--r-- | modules/img2img.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/img2img.py b/modules/img2img.py index c973b770..953ac5d2 100644 --- a/modules/img2img.py +++ b/modules/img2img.py @@ -157,7 +157,8 @@ def img2img(id_task: str, mode: int, prompt: str, negative_prompt: str, prompt_s if shared.cmd_opts.enable_console_prompts:
print(f"\nimg2img: {prompt}", file=shared.progress_print_out)
- p.extra_generation_params["Mask blur"] = mask_blur
+ if mask:
+ p.extra_generation_params["Mask blur"] = mask_blur
if is_batch:
assert not shared.cmd_opts.hide_ui_dir_config, "Launched with --hide-ui-dir-config, batch img2img disabled"
|