diff options
author | lenankamp <31517075+lenankamp@users.noreply.github.com> | 2023-05-19 07:20:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-19 07:20:19 +0000 |
commit | ff6acd35d0807a4e0c3ee86cdb1520a4a3a11cdd (patch) | |
tree | 16c875b14401003045069622d08f7d80c91b2203 /modules/img2img.py | |
parent | bbce167305091b34795284cabca7ab2fd56469b6 (diff) | |
download | stable-diffusion-webui-gfx803-ff6acd35d0807a4e0c3ee86cdb1520a4a3a11cdd.tar.gz stable-diffusion-webui-gfx803-ff6acd35d0807a4e0c3ee86cdb1520a4a3a11cdd.tar.bz2 stable-diffusion-webui-gfx803-ff6acd35d0807a4e0c3ee86cdb1520a4a3a11cdd.zip |
Update img2img.py
Hopefully corrected the white space issue
Diffstat (limited to 'modules/img2img.py')
-rw-r--r-- | modules/img2img.py | 4 |
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)
|