anotinelg commented on issue #15710: Inconsistent behaviour of ImageRecordIter depending on encoding format png vs jpeg URL: https://github.com/apache/incubator-mxnet/issues/15710#issuecomment-518852089 I agree with you, but this works **only** if you pack the image in the .rec file in format BGR (as you did in the example) ``` img[:, :, 0] = 0 # B img[:, :, 1] = 100 # G img[:, :, 2] = 200 # R ``` It does NOT work if you pack the img into the .rec files in RGB format, the normalisation will be applied to wrong channel. So I think this should be documented in the imageRecordIter class
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
