open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.56k stars 9.46k forks source link

why xml_style is not return the key “masks” and “seg_map”,As a result, the VOC data type cannot be trained using instance segmentation mask_rcnn. #7596

Closed liuyunfeng2016 closed 2 years ago

liuyunfeng2016 commented 2 years ago

https://github.com/open-mmlab/mmdetection/blob/3e2693151add9b5d6db99b944da020cba837266b/mmdet/datasets/xml_style.py#L150

I think he should be consistent with Coco.

https://github.com/open-mmlab/mmdetection/blob/master/mmdet/datasets/coco.py#L199

RangiLyu commented 2 years ago

Currently, the xml dataset does not support instance segmentation. It's better to convert to coco format if you want to train an instance segmentation model.

liuyunfeng2016 commented 2 years ago

Currently, the xml dataset does not support instance segmentation. It's better to convert to coco format if you want to train an instance segmentation model.

https://github.com/open-mmlab/mmdetection/blob/master/tools/dataset_converters/pascal_voc.py#L123

However, this conversion is problematic, only the rectangle box is converted, not the split point.