-
Notifications
You must be signed in to change notification settings - Fork 19
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/annotations/semi_supervised/instances_train2017.1@10.json' #10
Comments
the program can not find out the 10% labeling ratio in fold 1.you need to create the dataset by /tools/dataset/prepare_coco_data.sh. |
Great, solved it |
Have you run into the problem for valueError in training which make me annoyed? |
i have solved the problem following your advice, we need generate the annotations of 10% labeling ratio in fold 1, besides we should modify the dataset directory in base.py and PseCo_faster_rcnn_celoss_r50_caffe_fpn_coco_180k.py |
log_config = dict( [W ProcessGroupNCCL.cpp:1569] Rank 2 using best-guess GPU 2 to perform barrier as devices used by this process are currently unknown. This can potentially cause a hang if this rank to GPU mapping is incorrect.Specify device_ids in barrier() to force use of a particular device. unexpected key in source state_dict: conv1.bias 2022-10-27 14:41:09,282 - mmdet.ssod - INFO - initialize FPN with init_cfg {'type': 'Xavier', 'layer': 'Conv2d', 'distribution': 'uniform'} unexpected key in source state_dict: conv1.bias 2022-10-27 14:41:09,629 - mmdet.ssod - INFO - initialize FPN with init_cfg {'type': 'Xavier', 'layer': 'Conv2d', 'distribution': 'uniform'}
|
Hello author, the above error occurs when I execute the training script, what is the reason? |
Which mmdet do you use? mmdet in the folder thirdparty/mmdetection is prefered. |
loading annotations into memory...
Traceback (most recent call last):
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/mmcv/utils/registry.py", line 52, in build_from_cfg
return obj_cls(**args)
File "/home/liuhaolin/PseCo/thirdparty/mmdetection/mmdet/datasets/custom.py", line 89, in init
self.data_infos = self.load_annotations(self.ann_file)
File "/home/liuhaolin/PseCo/thirdparty/mmdetection/mmdet/datasets/coco.py", line 49, in load_annotations
self.coco = COCO(ann_file)
File "/home/liuhaolin/PseCo/thirdparty/mmdetection/mmdet/datasets/api_wrappers/coco_api.py", line 28, in init
super().init(annotation_file=annotation_file)
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/pycocotools/coco.py", line 81, in init
with open(annotation_file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '../data/annotations/semi_supervised/instances_train2017.1@10.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/mmcv/utils/registry.py", line 52, in build_from_cfg
return obj_cls(**args)
File "/home/liuhaolin/PseCo/ssod/datasets/dataset_wrappers.py", line 10, in init
super().init([build_dataset(sup), build_dataset(unsup)], **kwargs)
File "/home/liuhaolin/PseCo/thirdparty/mmdetection/mmdet/datasets/builder.py", line 78, in build_dataset
dataset = build_from_cfg(cfg, DATASETS, default_args)
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/mmcv/utils/registry.py", line 55, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
FileNotFoundError: CocoDataset: [Errno 2] No such file or directory: '../data/annotations/semi_supervised/instances_train2017.1@10.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tools/train.py", line 198, in
main()
File "tools/train.py", line 172, in main
datasets = [build_dataset(cfg.data.train)]
File "/home/liuhaolin/PseCo/thirdparty/mmdetection/mmdet/datasets/builder.py", line 78, in build_dataset
dataset = build_from_cfg(cfg, DATASETS, default_args)
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/mmcv/utils/registry.py", line 55, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
FileNotFoundError: SemiDataset: CocoDataset: [Errno 2] No such file or directory: '../data/annotations/semi_supervised/instances_train2017.1@10.json'
loading annotations into memory...
Traceback (most recent call last):
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/mmcv/utils/registry.py", line 52, in build_from_cfg
return obj_cls(**args)
File "/home/liuhaolin/PseCo/thirdparty/mmdetection/mmdet/datasets/custom.py", line 89, in init
self.data_infos = self.load_annotations(self.ann_file)
File "/home/liuhaolin/PseCo/thirdparty/mmdetection/mmdet/datasets/coco.py", line 49, in load_annotations
self.coco = COCO(ann_file)
File "/home/liuhaolin/PseCo/thirdparty/mmdetection/mmdet/datasets/api_wrappers/coco_api.py", line 28, in init
super().init(annotation_file=annotation_file)
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/pycocotools/coco.py", line 81, in init
with open(annotation_file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '../data/annotations/semi_supervised/instances_train2017.1@10.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/mmcv/utils/registry.py", line 52, in build_from_cfg
return obj_cls(**args)
File "/home/liuhaolin/PseCo/ssod/datasets/dataset_wrappers.py", line 10, in init
super().init([build_dataset(sup), build_dataset(unsup)], **kwargs)
File "/home/liuhaolin/PseCo/thirdparty/mmdetection/mmdet/datasets/builder.py", line 78, in build_dataset
dataset = build_from_cfg(cfg, DATASETS, default_args)
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/mmcv/utils/registry.py", line 55, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
FileNotFoundError: CocoDataset: [Errno 2] No such file or directory: '../data/annotations/semi_supervised/instances_train2017.1@10.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tools/train.py", line 198, in
main()
File "tools/train.py", line 172, in main
datasets = [build_dataset(cfg.data.train)]
File "/home/liuhaolin/PseCo/thirdparty/mmdetection/mmdet/datasets/builder.py", line 78, in build_dataset
dataset = build_from_cfg(cfg, DATASETS, default_args)
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/mmcv/utils/registry.py", line 55, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
FileNotFoundError: SemiDataset: CocoDataset: [Errno 2] No such file or directory: '../data/annotations/semi_supervised/instances_train2017.1@10.json'
Killing subprocess 94576
Killing subprocess 94577
Traceback (most recent call last):
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/torch/distributed/launch.py", line 340, in
main()
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/torch/distributed/launch.py", line 326, in main
sigkill_handler(signal.SIGTERM, None) # not coming back
File "/sdb/liuhaolin/anaconda3/envs/pseco/lib/python3.8/site-packages/torch/distributed/launch.py", line 301, in sigkill_handler
raise subprocess.CalledProcessError(returncode=last_return_code, cmd=cmd)
subprocess.CalledProcessError: Command '['/sdb/liuhaolin/anaconda3/envs/pseco/bin/python', '-u', 'tools/train.py', '--local_rank=1', 'configs/PseCo/PseCo_faster_rcnn_r50_caffe_fpn_coco_180k.py', '--work-dir', '/home/liuhaolin/PseCo/', '--launcher=pytorch', '--cfg-options', 'fold=1', 'percent=10']' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered: