Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Fix downloading COCO data #650

Merged
merged 2 commits into from
Jun 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion chainercv/datasets/coco/coco_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ def get_coco(split, img_split):
anno_url = anno_urls[split]
download_file_path = utils.cached_download(anno_url)
ext = os.path.splitext(anno_url)[1]
utils.extractall(download_file_path, annos_root, ext)
if split in ['train', 'val']:
utils.extractall(download_file_path, data_dir, ext)
elif split in ['valminusminival', 'minival']:
utils.extractall(download_file_path, annos_root, ext)
return data_dir


Expand Down