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

SAM - Normalization and ChipWindow #184

Merged
merged 1 commit into from
Aug 1, 2024
Merged

SAM - Normalization and ChipWindow #184

merged 1 commit into from
Aug 1, 2024

Conversation

rafaspadilha
Copy link
Contributor

@rafaspadilha rafaspadilha commented Jul 30, 2024

This PR replaces the ChipWindow named tuple with a tuple type alias. This fixes some serialization/deserialization errors that caused the workflow to break.

Additionally, this PR modifies how we scale and offset the raster values during normalization before SAM image encoder. After applying the raster's scale and offset normalization on the RGB bands, we now clip the values to the range [0,1] before multiplying them by 255. The lack of clipping operation was leading to inconsistencies in the segmentation masks outputs.

@rafaspadilha rafaspadilha changed the base branch from main to dev July 30, 2024 22:01
@rafaspadilha rafaspadilha marked this pull request as ready for review July 31, 2024 17:22
Copy link
Contributor

@robertomest robertomest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@renatolfc renatolfc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@rafaspadilha rafaspadilha merged commit fdcf4dc into dev Aug 1, 2024
9 checks passed
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.

3 participants