szagoruyko/functional-zoo

tensorflow image input format and means

ardiya opened this issue · 2 comments

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?

@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

Ah, I see. Thank you very much