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

Different pre-processing pipelines for different models? #13

Open
jonbakerfish opened this issue Apr 14, 2016 · 0 comments
Open

Different pre-processing pipelines for different models? #13

jonbakerfish opened this issue Apr 14, 2016 · 0 comments

Comments

@jonbakerfish
Copy link

I noticed that there are different image pre-processing pipelines for different models.

For Inception-BN, the images should be normalized with the mean_224.nd:

mean_img = mx.nd.load("Inception/mean_224.nd")["mean_img"]
normed_img = sample - mean_img.asnumpy()

For Inception-V3, the images should be:

normed_img = sample - 128.
normed_img /= 128.

For Inception-BN-21k, the images should be:

normed_img = sample - 117.

Am I correct with the above settings?

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

1 participant