How to combine mxnet.io.ImageRecordIter with mxnet.image data augmentation


#1

Hi,
I found mxnet.image contains many useful data augmentations implemented in python while mxnet.io.ImageRecordIter is an efficient data iterator implemented in C++.
However, the data augmentations in ImageRecordIter is not flexible. I would like to know if it is possible to combine them? If it is, is there any existing examples on how to use it?
Thanks


#2

Hi @bowenc0221,
I would suggest to look at these tutorials:

In short, you can still get good performance and you don’t need to use the ImageRecordIter. Have a look at the ImageRecordDataset, ImageFolderDataset and DataLoader. (note that this bug exists: https://github.com/apache/incubator-mxnet/issues/9974 and look at the associated hot fix)