diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-29 05:11:03 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-29 05:11:03 +0000 |
commit | a1e5e0d7669def010ecf31d801d6f0667bcf8061 (patch) | |
tree | 640f6a5abb607c9553731502dbcd4497c5677d11 /modules/extras.py | |
parent | cf8da8e1b0b8a4ea75c66ed4657f409cadab2c59 (diff) | |
download | stable-diffusion-webui-gfx803-a1e5e0d7669def010ecf31d801d6f0667bcf8061.tar.gz stable-diffusion-webui-gfx803-a1e5e0d7669def010ecf31d801d6f0667bcf8061.tar.bz2 stable-diffusion-webui-gfx803-a1e5e0d7669def010ecf31d801d6f0667bcf8061.zip |
skip filenames starting with . for img2img and extras batch modes
Diffstat (limited to 'modules/extras.py')
-rw-r--r-- | modules/extras.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extras.py b/modules/extras.py index 681d8d5a..4d51088b 100644 --- a/modules/extras.py +++ b/modules/extras.py @@ -72,7 +72,7 @@ def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_ if input_dir == '':
return outputs, "Please select an input directory.", ''
- image_list = [file for file in [os.path.join(input_dir, x) for x in sorted(os.listdir(input_dir))] if os.path.isfile(file)]
+ image_list = shared.listfiles(input_dir)
for img in image_list:
try:
image = Image.open(img)
|