mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
allow empty mask dir
This commit is contained in:
parent
5d14f282c2
commit
1421e95960
@ -21,8 +21,10 @@ def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args):
|
|||||||
|
|
||||||
images = shared.listfiles(input_dir)
|
images = shared.listfiles(input_dir)
|
||||||
|
|
||||||
inpaint_masks = shared.listfiles(inpaint_mask_dir)
|
is_inpaint_batch = False
|
||||||
is_inpaint_batch = inpaint_mask_dir and len(inpaint_masks) > 0
|
if inpaint_mask_dir:
|
||||||
|
inpaint_masks = shared.listfiles(inpaint_mask_dir)
|
||||||
|
is_inpaint_batch = len(inpaint_masks) > 0
|
||||||
if is_inpaint_batch:
|
if is_inpaint_batch:
|
||||||
print(f"\nInpaint batch is enabled. {len(inpaint_masks)} masks found.")
|
print(f"\nInpaint batch is enabled. {len(inpaint_masks)} masks found.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user