-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to solve multiple polygons(holes) in one instance segmentation? #31
Comments
@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. |
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
The text was updated successfully, but these errors were encountered: