Skip to content

Commit 456a591

Browse files
author
Marcin Kardas
authored
Merge pull request #14 from glenn-jocher/patch-1
Bug fix os.path.isdir() to os.path.isfile() in coco.py
2 parents 17eec49 + fd4714d commit 456a591

File tree

1 file changed

+1
-1
lines changed
  • sotabencheval/object_detection

1 file changed

+1
-1
lines changed

sotabencheval/object_detection/coco.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _download(self, annFile):
124124
:param annFile: path of the annotations file
125125
:return: void - extracts the archive
126126
"""
127-
if not os.path.isdir(annFile):
127+
if not os.path.isfile(annFile):
128128
if "2017" in annFile:
129129
annotations_dir_zip = os.path.join(
130130
self.root, "annotations_train%s2017.zip" % self.split

0 commit comments

Comments
 (0)