Skip to content

Commit

Permalink
Update imagenet_format.py (cvat-ai#152)
Browse files Browse the repository at this point in the history
Added support of uppercase file name extension in ImageNet format
  • Loading branch information
chuneuny-emily authored Mar 9, 2021
1 parent e32a4f9 commit d6902a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datumaro/plugins/imagenet_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _load_items(self, path):
items = {}
for image_path in glob(osp.join(path, '*', '*')):
if not osp.isfile(image_path) or \
osp.splitext(image_path)[-1] not in \
osp.splitext(image_path)[-1].lower() not in \
ImagenetPath.IMAGE_EXT_FORMATS:
continue
label = osp.basename(osp.dirname(image_path))
Expand Down

0 comments on commit d6902a8

Please sign in to comment.