Update img2img.py
Hopefully corrected the white space issue
This commit is contained in:
parent
bbce167305
commit
ff6acd35d0
@ -20,14 +20,14 @@ import modules.scripts
|
|||||||
def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args):
|
def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args):
|
||||||
processing.fix_seed(p)
|
processing.fix_seed(p)
|
||||||
|
|
||||||
# recursive batch, as written limits potential inputs to common image formats, may e better to just check if isfile for general use
|
images = []
|
||||||
images = []
|
|
||||||
for root, directories, files in os.walk(input_dir):
|
for root, directories, files in os.walk(input_dir):
|
||||||
for filename in files:
|
for filename in files:
|
||||||
filepath = os.path.join(root, filename)
|
filepath = os.path.join(root, filename)
|
||||||
if filepath.endswith(".jpg") or filepath.endswith(".jpeg") or filepath.endswith(".png") or filepath.endswith(".webp"):
|
if filepath.endswith(".jpg") or filepath.endswith(".jpeg") or filepath.endswith(".png") or filepath.endswith(".webp"):
|
||||||
images.append(filepath)
|
images.append(filepath)
|
||||||
|
|
||||||
|
|
||||||
is_inpaint_batch = False
|
is_inpaint_batch = False
|
||||||
if inpaint_mask_dir:
|
if inpaint_mask_dir:
|
||||||
inpaint_masks = shared.listfiles(inpaint_mask_dir)
|
inpaint_masks = shared.listfiles(inpaint_mask_dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user