mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-09 06:45:09 +00:00
fix file not found when [ is in the filename
This commit is contained in:
committed by
GitHub
parent
c4bc435bc4
commit
d8da85b38b
@@ -715,7 +715,7 @@ def debug_dataset(train_dataset):
|
||||
def glob_images(dir, base):
|
||||
img_paths = []
|
||||
for ext in IMAGE_EXTENSIONS:
|
||||
img_paths.extend(glob.glob(os.path.join(dir, base + ext)))
|
||||
img_paths.extend(glob.glob(glob.escape(os.path.join(dir, base + ext))))
|
||||
return img_paths
|
||||
|
||||
# endregion
|
||||
|
||||
Reference in New Issue
Block a user