Skip to content
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

Open
dzyjjpy opened this issue Apr 24, 2020 · 6 comments
Open

Comments

@dzyjjpy
Copy link

dzyjjpy commented Apr 24, 2020

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

@dzyjjpy
Copy link
Author

dzyjjpy commented Apr 24, 2020

微信图片_20200424114733

@dzyjjpy
Copy link
Author

dzyjjpy commented Apr 24, 2020

微信图片_20200424114733

@dzyjjpy
Copy link
Author

dzyjjpy commented May 19, 2020

@waspinator @hannarud do you have any suggestion for the bug?

@dy2728
Copy link

dy2728 commented Jun 3, 2020

@dzyjjpy Hello, i have the same question as you. Did you solve this problem?

@m-mohsin-zafar
Copy link

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.

@daikankan
Copy link

Same question,one polygon seems unable to cover these situations:
00000
00020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants