pycococreator
pycococreator copied to clipboard
How to solve multiple polygons(holes) in one instance segmentation?
As describe in question, I met one issue. For example, for a person's instance segmentation, there might be more than 1 polygon in the mask. some holes appeared in the person's polygon? How to solve this occasion? @waspinator
@waspinator @hannarud do you have any suggestion for the bug?
@dzyjjpy Hello, i have the same question as you. Did you solve this problem?
You may create a copy of original mask and perform morphological dilation, closing or floodfill and then use skimage.measure.find_contours() to get polygon. However, at training time you may use the original mask for the model because your requirement of getting a polygon depicting the outer boundry of the object is fullfilled by the annotations created earlier.
Same question,one polygon seems unable to cover these situations: