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

The normalization in data pre-processing #27

Open
yzou2 opened this issue Jan 23, 2019 · 2 comments
Open

The normalization in data pre-processing #27

yzou2 opened this issue Jan 23, 2019 · 2 comments

Comments

@yzou2
Copy link

yzou2 commented Jan 23, 2019

I notice that the normalization of images in your code uses "image - mean," rather than the normal "(image - mean)/std". Is there a specific reason for using this kind of normalization?

For the scale of pixel values, your code is in the scale of [-128,128], rather than [-0.5,0.5] that are used in other works. Which one is better?

Also, if I use only the ImageNet pre-trained model, which kind of image normalization and pixel scale should I use?

@yzou2
Copy link
Author

yzou2 commented Jan 23, 2019

I have figured the scale problem in data preprocessing. But I still do not know why the model do not use std in the normalization? Any help will be appreciated!

@yzou2 yzou2 closed this as completed Jan 23, 2019
@yzou2 yzou2 reopened this Jan 23, 2019
@koutilya-pnvr
Copy link

Hi @yzou2, do you mind explaining why the range of [-128, 128] is used and not [-0.5, 0.5]?

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