Skip to content

Fix bug binary_mask_to_polygon when multiple contours of disjoint are…#52

Open
miquel-espinosa wants to merge 1 commit intowaspinator:masterfrom
miquel-espinosa:patch-1
Open

Fix bug binary_mask_to_polygon when multiple contours of disjoint are…#52
miquel-espinosa wants to merge 1 commit intowaspinator:masterfrom
miquel-espinosa:patch-1

Conversation

@miquel-espinosa
Copy link
Copy Markdown

Fix a small bug inside the funciton binary_mask_to_polygon in pycocoreatortools.py The bug happened when multiple contours of disjoint areas were found. We cannot do np.subtract on multiple arrays of different sizes.

For example, if we have a mask like this one, it has multiple disjoint parts.

image

…as are found

Fix a small bug inside the funciton binary_mask_to_polygon in pycocoreatortools.py 
The bug happened when multiple contours of disjoint areas were found. We cannot do np.subtract on multiple arrays of different sizes.
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

Successfully merging this pull request may close these issues.

1 participant