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
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