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

Fixed the bandorder of EuroSAT #2480

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

lhackel-tub
Copy link
Contributor

@lhackel-tub lhackel-tub commented Dec 19, 2024

Fixes applied to dataset, datamodule and within the tutorial to align with the issue raised in the EuroSAT git repository.

Fixes #2458

I did not check other Sentinel-2 datasets.

…orial to align with [the issue raised in the EuroSAT git repository](phelber/EuroSAT#7)
@github-actions github-actions bot added documentation Improvements or additions to documentation datasets Geospatial or benchmark datasets datamodules PyTorch Lightning datamodules labels Dec 19, 2024
@lhackel-tub
Copy link
Contributor Author

@microsoft-github-policy-service agree

@adamjstewart adamjstewart added this to the 0.6.2 milestone Dec 19, 2024
Copy link
Collaborator

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@adamjstewart adamjstewart merged commit 58dc321 into microsoft:main Dec 19, 2024
20 checks passed
'B10': 4.77584468,
'B11': 1002.58768311,
'B12': 761.30323499,
'B8A': 1231.58581042,
Copy link
Member

Choose a reason for hiding this comment

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

These don't need to be moved around, this is a dictionary

Copy link
Collaborator

Choose a reason for hiding this comment

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

True, but it's better to keep them in the same order as everything else.

@calebrob6
Copy link
Member

I don't think this is correct because we calculate the mean and stdev in whatever order the channels are seen in the files

@adamjstewart
Copy link
Collaborator

I don't think this is correct because we calculate the mean and stdev in whatever order the channels are seen in the files

Correct, and since we're changing the order of the band names in the files, we also need to change the order of the mean/std dev we apply.

adamjstewart pushed a commit that referenced this pull request Dec 19, 2024
…orial to align with [the issue raised in the EuroSAT git repository](phelber/EuroSAT#7) (#2480)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datamodules PyTorch Lightning datamodules datasets Geospatial or benchmark datasets documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong band order in EuroSAT dataset
3 participants