Skip to content

Commit

Permalink
fix bug for dataset dir. (issue #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangGongjie committed Apr 15, 2022
1 parent c2e6a8f commit 16d79d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datasets/coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ def build(image_set, args):
assert root.exists(), f'provided COCO path {root} does not exist'
mode = 'instances'
PATHS = {
"train": (root / "images" / "train2017", root / "annotations" / f'{mode}_train2017.json'),
"val": (root / "images" / "val2017", root / "annotations" / f'{mode}_val2017.json'),
"test": (root / "images" / "test2017", root / "annotations" / f'image_info_test-dev2017.json'),
"train": (root / "train2017", root / "annotations" / f'{mode}_train2017.json'),
"val": (root / "val2017", root / "annotations" / f'{mode}_val2017.json'),
"test": (root / "test2017", root / "annotations" / f'image_info_test-dev2017.json'),
}

img_folder, ann_file = PATHS[image_set]
Expand Down

0 comments on commit 16d79d3

Please sign in to comment.