OpenUnReID icon indicating copy to clipboard operation
OpenUnReID copied to clipboard

Something about the Sampler

Open Frost-Yang-99 opened this issue 5 years ago • 1 comments

Hi, I have read the code about the dist_samplers, and I have a question about it. It seems that in a epoch you don't sample all qualified images in a dataset. the number of images in a epoch seems depend on the 'num_instance' and the 'num of pid' in this dataset(For example, if we use market1501, we should sampler more than 10000 images in a epoch, but now we only sample 'num_instances * pids' images in a epoch). Will this have a bad effect on the model and final results due to the lack of images diversity in a epoch? 3Q >_<

Frost-Yang-99 avatar Apr 03 '21 03:04 Frost-Yang-99

A good question. Actually, I am not sure about it. I used such an identity sampler according to its wide usage in person re-id applications. You could try to modify it for more diverse samples for training. Welcome to show your results here.

yxgeee avatar Apr 04 '21 14:04 yxgeee