Actually I don’t want to have a fixed dataset and then sample random batches. After every epoch, I want to construct a random dataset. Essentially what I want is that regardless of epochs, every batch randomly picks images from a given folder having millions of images.