I’m not sure if I misunderstand the explanation, but could you explain this a bit more?



 NoobCoder:

I have written a dataloader that l load all the data (images) create batches from that (not a tensor, just a simple RGB image), then for each batch, I will save the image name and the number of batches, so at the end, I can know which patch belongs to which image and what is the number.


How are you determining the number of batches and how do you store it with the image name?



 NoobCoder:

and another thing is that for example for each image, I will create 1000 batches, then how can I put these 1000 patches into a batch_size of 32 and do not lose which patch belongs to which image?


Would you like to create batches with patches from mixed images or should a batch only contain patches from the same image?
In the latter case: should these patches from the same image be shuffled or do you want a specific order?