aboutsummaryrefslogtreecommitdiff
path: root/modules/img2img.py
diff options
context:
space:
mode:
authorlenankamp <31517075+lenankamp@users.noreply.github.com>2023-05-19 03:20:19 -0400
committerGitHub <noreply@github.com>2023-05-19 03:20:19 -0400
commitff6acd35d0807a4e0c3ee86cdb1520a4a3a11cdd (patch)
tree16c875b14401003045069622d08f7d80c91b2203 /modules/img2img.py
parentbbce167305091b34795284cabca7ab2fd56469b6 (diff)
Update img2img.py
Hopefully corrected the white space issue
Diffstat (limited to 'modules/img2img.py')
-rw-r--r--modules/img2img.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/img2img.py b/modules/img2img.py
index ad5f2e73..d1872bed 100644
--- a/modules/img2img.py
+++ b/modules/img2img.py
@@ -20,14 +20,14 @@ import modules.scripts
def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args):
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 filename in files:
filepath = os.path.join(root, filename)
if filepath.endswith(".jpg") or filepath.endswith(".jpeg") or filepath.endswith(".png") or filepath.endswith(".webp"):
images.append(filepath)
+
is_inpaint_batch = False
if inpaint_mask_dir:
inpaint_masks = shared.listfiles(inpaint_mask_dir)