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

Allow specifying class probability thresholds for semantic segmentation vectorization #2057

Merged
merged 1 commit into from Feb 9, 2024

Conversation

AdeelH
Copy link
Collaborator

@AdeelH AdeelH commented Feb 8, 2024

Overview

This PR adds a threshold field to VectorOutputConfig, such that the binary mask for class i's vectorization is now computed as probability_raster_i >= threshold.

Checklist

  • Added unit tests, if applicable
  • Updated documentation, if applicable
  • Added needs-backport label if the change should be back-ported to the previous release
  • PR has a name that won't get you publicly shamed for vagueness

Notes

N/A

Testing Instructions

  • See updated unit tests.
  • Also tested with an older model bundle and verified vector outputs in QGIS.

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e67e488) 89.68% compared to head (d44e97c) 89.69%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2057   +/-   ##
=======================================
  Coverage   89.68%   89.69%           
=======================================
  Files         196      196           
  Lines        9723     9731    +8     
=======================================
+ Hits         8720     8728    +8     
  Misses       1003     1003           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AdeelH AdeelH marked this pull request as ready for review February 9, 2024 14:28
@AdeelH AdeelH merged commit 2359be1 into azavea:master Feb 9, 2024
2 checks passed
@AdeelH AdeelH deleted the vec-thresh branch February 9, 2024 17:30
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.

None yet

1 participant