batchgenerators icon indicating copy to clipboard operation
batchgenerators copied to clipboard

How can I iterate my dataset and make sure each sample is used only once?

Open MA-Aaron opened this issue 5 years ago • 1 comments

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?

MA-Aaron avatar Jul 18 '20 23:07 MA-Aaron

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

FabianIsensee avatar Jul 22 '20 13:07 FabianIsensee