mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Difference between ImageIter and ImageRecordIter

Open littlelid opened this issue 9 years ago • 7 comments

I feed same train.lst and train.rec to ImageIter ImageRecordIter,

val = mx.io.ImageRecordIter( ...... batch_size = batch_size, data_shape = (3, 224, 224), label_width = 2, rand_crop = True, rand_mirror = True)

val = mx.img.ImageIter( ...... batch_size = batch_size, data_shape = (3, 224, 224), label_width = 2, rand_crop = True , rand_mirror = True)

But Evalutation genetated from ImageRecordIter is extremly better. I curious about what preprocess ImageRecordIter is doing on a raw image

littlelid avatar Mar 18 '17 19:03 littlelid

I got the similar issue. Have you found any clues?

melody-rain avatar Aug 09 '17 13:08 melody-rain

@mli @piiswrong @tqchen This seems like a bug.............

xuzhm avatar Nov 06 '17 15:11 xuzhm

@apache/mxnet-committers: This issue has been inactive for the past 90 days. It has no label and needs triage.

For general "how-to" questions, our user forum (and Chinese version) is a good place to get help.

szha avatar Feb 06 '18 00:02 szha

@nswamy Please add 'Bug', 'Python' to this topic

lanking520 avatar Apr 10 '18 18:04 lanking520

@littlelid @melody-rain have you had a chance to try this out on a recent version? its been a long time, but do you have the dataset/script that you used when you saw the issue?

vandanavk avatar Jul 27 '18 03:07 vandanavk

Related issue https://github.com/apache/incubator-mxnet/issues/7406

Roshrini avatar Aug 08 '18 22:08 Roshrini

@littlelid Its difficult to reproduce this issue with little information provided. I tried to reproduce this issue on Caltech dataset. Was not able to do it. Referred: https://mxnet.incubator.apache.org/tutorials/basic/data.html#using-imagerecorditer

Didn't see any difference between images generated by ImageRecordIter and ImageIter Used resnet 50 model for inference. Didn't see any major accuracy difference.

I will be closing this issue for now. Please reopen if closed in error or if issue still persists. Please provide script with which you saw this difference.

@sandeep-krishnamurthy Can you please close this issue? Thanks!

Roshrini avatar Aug 17 '18 19:08 Roshrini