batchgenerators
batchgenerators copied to clipboard
How can I iterate my dataset and make sure each sample is used only once?
Thank you so much for such a wonderful library!
I do not want to introduce patch in my codes, so may I ask how can I iterate my dataset and make sure each sample is used only once just like the Dataloader of PyTorch?
Hi, please have a look at the cifar 10 example. You need to create a Dataset Object: https://github.com/MIC-DKFZ/batchgenerators/blob/1ecfe04efd1c74c6254571750b37278e43003357/batchgenerators/examples/cifar10.py Best, Fabian