ptrendx commented on issue #8552: Problem in mx.io.ImageRecordIter
URL: 
https://github.com/apache/incubator-mxnet/issues/8552#issuecomment-342206112
 
 
   The variable number of batches per epoch is kind of intentional. What 
happens here is basically: if the number of images is not divisible by the 
batch size, then iterator needs to fill the last batch with something after it 
used all of the images. By default it uses images from the next epoch (you can 
change that behavior by setting `round_batch` option of the iterator to 
`False`). Then, during the next epoch, it does not use those images (otherwise 
those images would be overrepresented in the training process), which in some 
cases may result in that epoch having 1 less batch.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to