I am using SubsetRandomSampler() class in pytorch to train on a subset of my data set,
I have got these problems:

as dataset I use CocoDetection and my data loader seems  not returning labels for all objects.
how could I get the indices randomly chosen by SubsetRandomSampler from the list of indices that I provided at each batch run?