DataLoader Filenames in each Batch

you can write a custom Dataset that not only returns the images but also their ids / paths.
For example:


can be

return image, target, path

or

return image, target, index
3 Likes