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: '/mnt/SSD/det/coco/annotations/instances_train2017.json' #16

Open
AL-Yan opened this issue Aug 30, 2022 · 0 comments

Comments

@AL-Yan
Copy link

AL-Yan commented Aug 30, 2022

Traceback (most recent call last):
File "tools/train.py", line 108, in
main()
File "tools/train.py", line 85, in main
train_dataset = build_dataset(cfg.data.train)
File "/root/autodl-tmp/DB_loss/DistributionBalancedLoss/mllt/datasets/builder.py", line 36, in build_dataset
dataset = build_from_cfg(cfg, DATASETS)
File "/root/autodl-tmp/DB_loss/DistributionBalancedLoss/mllt/utils/registry.py", line 74, in build_from_cfg
return obj_type(**args)
File "/root/autodl-tmp/DB_loss/DistributionBalancedLoss/mllt/datasets/coco.py", line 27, in init
super(CocoDataset, self).init(**kwargs)
File "/root/autodl-tmp/DB_loss/DistributionBalancedLoss/mllt/datasets/custom.py", line 59, in init
self.img_infos = self.load_annotations(ann_file, LT_ann_file)
File "/root/autodl-tmp/DB_loss/DistributionBalancedLoss/mllt/datasets/coco.py", line 32, in load_annotations
self.coco = COCO(ann_file)
File "/root/miniconda3/envs/blast/lib/python3.7/site-packages/pycocotools-2.0-py3.7-linux-x86_64.egg/pycocotools/coco.py", line 84, in init
dataset = json.load(open(annotation_file, 'r'))
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/SSD/det/coco/annotations/instances_train2017.json'

When I run python tools/train.py configs/coco/LT_resnet50_pfc_DB.py ,this error was rasied. I think this is because the program did not find the location of coco dataset. But I'm not sure. Can you tell me how to solve this error? Thank you!

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