cocodataset / panopticapi

COCO 2018 Panoptic Segmentation Task API (Beta version)
Other
418 stars 184 forks source link

overlapping between annotations #44

Open trs96 opened 3 years ago

trs96 commented 3 years ago

Hey! I saw that using detection2panoptic is only possible if there are ne overlappings in the annotations. Since I have some overlappings in my annoations, how to get rid of them? Any suggestion? :)

I'm struggling with this problem already for a while..

cydal commented 2 years ago

@trs96 did you ever find a solution to this problem?

domef commented 1 year ago

You can change line 69 of converters/detection2panoptic_coco_format.py with continue so it will only skip the samples with overlaps instead of crashing. https://github.com/cocodataset/panopticapi/blob/7bb4655548f98f3fedc07bf37e9040a992b054b0/converters/detection2panoptic_coco_format.py#L69

achbogga commented 1 year ago

@cydal @domef @trs96 Another thing is to comment out the lines 69 and 68. This will however overwrite the pixels with the last class label.