Skip to content

Commit

Permalink
Merge pull request #34 from mgmalana/patch-1
Browse files Browse the repository at this point in the history
Make EasySet supported_formats not case sensitive
  • Loading branch information
ebennequin authored Apr 4, 2022
2 parents 22ffa7f + 7bdfb62 commit bc60a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easyfsl/datasets/easy_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def list_data_instances(
class_images = [
str(image_path)
for image_path in sorted(Path(class_root).glob("*"))
if image_path.is_file() & (image_path.suffix in supported_formats)
if image_path.is_file() & (image_path.suffix.lower() in supported_formats)
]
images += class_images
labels += len(class_images) * [class_id]
Expand Down

0 comments on commit bc60a25

Please sign in to comment.