Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'data/coco/annotations/instances_val2017.json' #9

Open
Lixia1221 opened this issue May 12, 2021 · 0 comments

Comments

@Lixia1221
Copy link

python tools/test.py configs/grid_rcnn_r50_fpn_2x.py checkpoints/grid_rcnn_res50.pth --show
loading annotations into memory...
Traceback (most recent call last):
File "tools/test.py", line 189, in
main()
File "tools/test.py", line 145, in main
dataset = get_dataset(cfg.data.test)
File "/home/fsr/Grid-R-CNN/mmdet/datasets/utils.py", line 110, in get_dataset
dset = obj_from_dict(data_info, datasets)
File "/home/fsr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/utils.py", line 50, in obj_from_dict
return obj_type(**args)
File "/home/fsr/Grid-R-CNN/mmdet/datasets/custom.py", line 61, in init
self.img_infos = self.load_annotations(ann_file)
File "/home/fsr/Grid-R-CNN/mmdet/datasets/coco.py", line 25, in load_annotations
self.coco = COCO(ann_file)
File "/home/fsr/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/pycocotools-2.0.2-py3.7-linux-x86_64.egg/pycocotools/coco.py", line 84, in init
with open(annotation_file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/coco/annotations/instances_val2017.json'

but the file does exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant