daijifeng001 / MNC

Instance-aware Semantic Segmentation via Multi-task Network Cascades
Other
489 stars 182 forks source link

Creating SBD dataset from polygon information #64

Open ogail opened 7 years ago

ogail commented 7 years ago

Hi, I want to conduct MNC training on my own dataset, however the object boundaries ground truth information I have is in polygon points + class format like this: {class: "pen", "polygon": [(x1,y1), (x2,y2),(x3,y3),(x4,y4)]}. I'd appreciate if anyone is aware of an existing code or an easy way to convert this into SBD format. Note that closest thing I found was converting SpaceNet getJson labels to Pascal VOC labels (however, this requires converting what I have to getJson labels, which is still not as straightforward).

Any help/tips on a way to easily convert polygons/class to SBD would be appreciate.