Skip to content

Commit 3856ada

Browse files
committed
do not add mask blur to infotext if there is no mask
1 parent 433b3ab commit 3856ada

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/img2img.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ def img2img(id_task: str, mode: int, prompt: str, negative_prompt: str, prompt_s
157157
if shared.cmd_opts.enable_console_prompts:
158158
print(f"\nimg2img: {prompt}", file=shared.progress_print_out)
159159

160-
p.extra_generation_params["Mask blur"] = mask_blur
160+
if mask:
161+
p.extra_generation_params["Mask blur"] = mask_blur
161162

162163
if is_batch:
163164
assert not shared.cmd_opts.hide_ui_dir_config, "Launched with --hide-ui-dir-config, batch img2img disabled"

0 commit comments

Comments
 (0)