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

RGB mean & std normalization values #302

Open
tflahaul opened this issue Nov 18, 2022 · 0 comments
Open

RGB mean & std normalization values #302

tflahaul opened this issue Nov 18, 2022 · 0 comments
Assignees
Labels

Comments

@tflahaul
Copy link
Contributor

The "resnet" normalization only works with Imagenet RGB mean and std: ((0.485, 0.456, 0.406), (0.229, 0.224, 0.225))
Being able to specify the mean & std of other datasets at instantiation could be great.

Current workaround:

f = aloscene.Frame(torch.rand(1, 10, 10), names=('C', 'H', 'W'), normalization="resnet")
f.mean_std = ((0.5, 0.5, 0.5), (0.3, 0.3, 0.3))

Also, changing the name of the "resnet" normalization to "z-norm", "meanstd" or something similar could be better for everyones understanding

@tflahaul tflahaul added enhancement New feature or request aloscene aloscene quick-fix discussion labels Nov 18, 2022
@tflahaul tflahaul changed the title Constant RGB mean & std normalization values RGB mean & std normalization values are constant Nov 18, 2022
@tflahaul tflahaul changed the title RGB mean & std normalization values are constant RGB mean & std normalization values Nov 18, 2022
@Dee61298 Dee61298 self-assigned this Jan 12, 2023
@Dee61298 Dee61298 linked a pull request Jan 12, 2023 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants