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

tensorflow image input format and means #17

Closed
ardiya opened this issue Jul 17, 2017 · 2 comments
Closed

tensorflow image input format and means #17

ardiya opened this issue Jul 17, 2017 · 2 comments

Comments

@ardiya
Copy link

ardiya commented Jul 17, 2017

Hi @szagoruyko,

First of all thanks for converting the wide resnet model to tensorflow :)

I have some question about the details in WRN50 model:

  1. The Input image, is it RGB, BGR, or others? I saw the inputs.permute(0,2,3,1) and its kinda unintuitive.
  2. What about image mean?
@szagoruyko
Copy link
Owner

@ardiya preprocessing is the same with torch:

inputs.permute(0,2,3,1) is because input tensor is in NCHW in pytorch, and NHWC in tensorflow

@ardiya
Copy link
Author

ardiya commented Jul 18, 2017

Ah, I see. Thank you very much

@ardiya ardiya closed this as completed Jul 18, 2017
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