chrise96 / image-to-coco-json-converter

Convert segmentation RGB mask images to COCO JSON format
199 stars 57 forks source link

how to clip overlay area? #15

Open stphtan94117 opened 1 year ago

stphtan94117 commented 1 year ago

image

i have a dataset from a lot of complex shape. but this model was not able to clip overlay area. how to clip overlay area? this is my dataset, thanks.

https://drive.google.com/drive/folders/1butmjjGTgMIEr6bq1nQ3ejjm0M7oN_YR?usp=share_link

chrise96 commented 1 year ago

Hi, can you try to add the ids of these classes to the list of the multipolygon_ids variable?

stphtan94117 commented 1 year ago

Hi, can you try to add the ids of these classes to the list of the multipolygon_ids variable?

they are all multipolygon, but i add all class or part of class, it only show one polygon. for example, there are a lot of agricultureal polygons, but i add class 6 in multipolygon_ids [6] or [0,1,2,3,4,5,6].... , the image will only show "one "agriculturea polygon and it can not solve to overlay area.

maybe you can download my dataset and try , you will know what i say. just erase polygon overlayed.

there are overlay area samples. image image image