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

updated post-processing: added sam auto-segmentation method #12

Merged
merged 8 commits into from
Aug 12, 2024

Conversation

mese79
Copy link
Collaborator

@mese79 mese79 commented Aug 5, 2024

Added a new method for post-processing:

  • Using SamAutomaticMaskGenerator class to generate all instances by SAM
  • For each connected component in the prediction mask, this tries to find a match in SAM's masks
  • Matching happens by calculating IOU and then applying a threshold
  • If more than one match were found, the one with minimum area will be selected.
  • IOU threshold can be set by user (default is 0.45).

@mese79 mese79 merged commit 4255d84 into main Aug 12, 2024
4 checks passed
@mese79 mese79 deleted the ms/feat/postprocess_sam_autoseg branch September 9, 2024 11:11
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