Skip to content

Conversation

sberan
Copy link
Contributor

@sberan sberan commented Sep 20, 2025

Description

When converting segmentation masks to polys, the current algorithm is to choose the first contour found. This logic causes erroneous behavior which sometimes chooses small contours to be selected.

With this change, we use the same logic from inference, which picks the largest contour for conversion.

Also fixes some issues with release process github actions.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How has this change been tested, please provide a testcase or example of how you tested the change?

Tested locallly

Any specific deployment considerations

Standard deploy

Docs

  • Docs updated? What were the changes:

@sberan sberan merged commit 89996c1 into main Sep 21, 2025
1 check passed
@sberan sberan deleted the polygon-selection branch September 21, 2025 14:26
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.

2 participants