loading annotations into memory...
Traceback (most recent call last):
File "/jmain02/home/J2AD014/mtc11/rxt49-mtc11/.conda/envs/semi/lib/python3.8/site-packages/mmcv/utils/registry.py", line 52, in build_from_cfg
return obj_cls(**args)
File "/jmain02/home/J2AD014/mtc11/rxt49-mtc11/Semi-DETR/thirdparty/mmdetection/mmdet/datasets/custom.py", line 90, in init
self.data_infos = self.load_annotations(self.ann_file)
File "/jmain02/home/J2AD014/mtc11/rxt49-mtc11/Semi-DETR/thirdparty/mmdetection/mmdet/datasets/coco.py", line 48, in load_annotations
self.coco = COCO(ann_file)
File "/jmain02/home/J2AD014/mtc11/rxt49-mtc11/Semi-DETR/thirdparty/mmdetection/mmdet/datasets/api_wrappers/coco_api.py", line 23, in init
super().init(annotation_file=annotation_file)
File "/jmain02/home/J2AD014/mtc11/rxt49-mtc11/.local/lib/python3.8/site-packages/pycocotools/coco.py", line 81, in init
with open(annotation_file, 'r') as f:
PermissionError: [Errno 13] Permission denied: '/root/paddlejob/workspace/env_run/output/temp/data/coco/annotations/semi_supervised/instances_train2017.1@10.json'
It looks like there is a problem with the target files. could you check whether the file exists in the target folder, or authorize the corresponding permission to the files(read permission)?
loading annotations into memory... Traceback (most recent call last): File "/jmain02/home/J2AD014/mtc11/rxt49-mtc11/.conda/envs/semi/lib/python3.8/site-packages/mmcv/utils/registry.py", line 52, in build_from_cfg return obj_cls(**args) File "/jmain02/home/J2AD014/mtc11/rxt49-mtc11/Semi-DETR/thirdparty/mmdetection/mmdet/datasets/custom.py", line 90, in init self.data_infos = self.load_annotations(self.ann_file) File "/jmain02/home/J2AD014/mtc11/rxt49-mtc11/Semi-DETR/thirdparty/mmdetection/mmdet/datasets/coco.py", line 48, in load_annotations self.coco = COCO(ann_file) File "/jmain02/home/J2AD014/mtc11/rxt49-mtc11/Semi-DETR/thirdparty/mmdetection/mmdet/datasets/api_wrappers/coco_api.py", line 23, in init super().init(annotation_file=annotation_file) File "/jmain02/home/J2AD014/mtc11/rxt49-mtc11/.local/lib/python3.8/site-packages/pycocotools/coco.py", line 81, in init with open(annotation_file, 'r') as f: PermissionError: [Errno 13] Permission denied: '/root/paddlejob/workspace/env_run/output/temp/data/coco/annotations/semi_supervised/instances_train2017.1@10.json'
How to handle this error?