grez72 commented on issue #14489: global shuffling
URL: 
https://github.com/apache/incubator-mxnet/issues/14489#issuecomment-475743887
 
 
   Sorry I wasn't clear about that. By index I mean the value in the first 
column of the .lst file used to generate the .rec and .idx files.  Each batch 
of the iterator has fields for batch.data, batch.label, and batch.index. 
   
   ```
   batch = data_iter.next()
   data = batch.data[0]
   labels = batch.label[0]
   indexes = batch.index
   ```
   
   When using ImageRecordIter_v1, batch.index returns the index of the image, 
corresponding to the first column of the .lst file. However, when using  
ImageRecordIter, batch.index returns all zeros! 
   
   The reason I was using ImageRecordIter_v1 was because it returns the correct 
index value, which I need to train my model (it also seemed to be loading 
images faster).
   
   Is it possible to have ImageRecordIter return the correct image index (first 
column of .lst file)?
   
   Thanks!
   

----------------------------------------------------------------
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

Reply via email to