Sense-X / Co-DETR

[ICCV 2023] DETRs with Collaborative Hybrid Assignments Training
MIT License
950 stars 100 forks source link

Fix/coco segmentation #102

Closed Zamen closed 8 months ago

Zamen commented 8 months ago

When an image has bboxes but no masks, the _parse_ann_info method of CocoDataset appends None for gt_masks. This makes the method _poly2mask of LoadAnnotations fail at line 308 of file mmdet.datasets.pipelines.loading.py.