skip filenames starting with . for img2img and extras batch modes

This commit is contained in:
AUTOMATIC
2022-10-29 08:11:03 +03:00
parent cf8da8e1b0
commit a1e5e0d766
3 changed files with 7 additions and 2 deletions

View File

@@ -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)