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

Suggested normalization for pretrained models #19

Open
adamjstewart opened this issue Mar 18, 2023 · 3 comments
Open

Suggested normalization for pretrained models #19

adamjstewart opened this issue Mar 18, 2023 · 3 comments

Comments

@adamjstewart
Copy link

Thanks for publishing these pretrained models! We added them to TorchGeo, but aren't sure what normalization we should be using with them. Looking through the datasets, I'm seeing very different normalizations used for each dataset:

  • BigEarthNet: compute mean/std, normalize using clip((x - mean - 2 * std) / (4 * std) * 255)
  • EuroSAT: no normalization
  • OSCD: compute min/max, normalize using clip((x - min) / (max - min) * 255)
  • SeCo: compute min/max, normalize using clip((x - min) / (max - min) * 255), followed by ImageNet normalization

To most effectively use these pretrained models, we would like to be able to use the same normalization used to create the weights. So I'm guessing we should use the SeCo normalization technique?

@symhsym
Copy link

symhsym commented Jun 17, 2024

Hi, may I ask where did you find the BigEarthNet normalizations formula?

@symhsym
Copy link

symhsym commented Jun 17, 2024

Thanks

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

No branches or pull requests

2 participants