The Data Loader in PyTorch generally does not give the images in sorted fashion.
For a certain task, I have some images with the same image ID and I wish to group these images for a function that I wish to create.
How can I modify the data loader such that the images are sorted (or grouped) according to the image ID?
It would also be helpful to know more on how I can access individual files through the data loader as I find difficulty in accessing images individually.
Thanks in advance!