KeyError: 'segmentation'
See original GitHub issueFor cascade_rcnn_r50_fpn_1x.py
and custom dataset for detection only I’ve got
File "/learning/other/mmdetection/mmdet/datasets/coco.py", line 87, in _parse_ann_info
gt_masks_ann.append(ann['segmentation'])
KeyError: 'segmentation'
And after changing train_pipeline options:
dict(type='LoadAnnotations', with_bbox=True, with_mask=False),
This error still exist. I assume for COCO it works, because COCO has masks. But for detection dataset it doesn’t work.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
detectron2 training keyerror - python - Stack Overflow
I am trying to train my own COCO dataset with detectron2, however when I start my own training I encounter a key error....
Read more >Getting KeyError: 'id' even when 'id' is present in the json file
Context: I am trying to train the VOC dataset on this few shot object detection library called FewX and in order to do...
Read more >mmdet.datasets.coco_panoptic - MMDetection's documentation!
... """Coco dataset for Panoptic segmentation. ... if metric not in allowed_metrics: raise KeyError(f'metric {metric} is not supported') result_files, ...
Read more >KeyError in opening omeTiff - Usage & Issues - Image.sc Forum
D:\20913\Anaconda3\envs\segmentation\lib\site-packages\aicsimageio\aics_image.py in init(self, image, reader, reconstruct_mosaic, **kwargs)
Read more >Installation of ITKElastix with pip - Beginner Questions - ITK
... 5.3rc4 itk-registration 5.3rc4 itk-segmentation 5.3rc4 itk-strain ... itk_base_global_module_data[name] KeyError: 'ITKImageSources'.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Solved after changing my annotation file which looked like for some bbox:
and added new key-value like
'segmentation': []
@Aavesh is there a way to train models like retinaNet without providing masks? Also can you please tell where to find “config.py” that you have mentioned above. @David-19940718 @CMobley7