Make file name extension check case insensitive, so .JPG or .PNG files will also be detected
This commit is contained in:
parent
97a8c69451
commit
fb73c16515
|
@ -231,7 +231,7 @@ class DataLoaderMultiAspect():
|
||||||
current = os.path.join(recurse_root, f)
|
current = os.path.join(recurse_root, f)
|
||||||
|
|
||||||
if os.path.isfile(current):
|
if os.path.isfile(current):
|
||||||
ext = os.path.splitext(f)[1]
|
ext = os.path.splitext(f)[1].lower()
|
||||||
if ext in ['.jpg', '.jpeg', '.png', '.bmp', '.webp', '.jfif']:
|
if ext in ['.jpg', '.jpeg', '.png', '.bmp', '.webp', '.jfif']:
|
||||||
# add image multiplyrepeats number of times
|
# add image multiplyrepeats number of times
|
||||||
for _ in range(multiply):
|
for _ in range(multiply):
|
||||||
|
|
Loading…
Reference in New Issue