yxgeee / SpCL

[NeurIPS-2020] Self-paced Contrastive Learning with Hybrid Memory for Domain Adaptive Object Re-ID.
https://yxgeee.github.io/projects/spcl
MIT License
318 stars 67 forks source link

number of instances in each mini batch #27

Closed ZacharyWang-007 closed 3 years ago

ZacharyWang-007 commented 3 years ago

Hi Yixiao, I have conducted several experiments by running ur code, finding that when setting the number of instances 0, the accuracy drops a lot. Have u found out this before? Theoretically, the Sampler should be such crucial to the Re-ID task. Could u please explain for me?

yxgeee commented 3 years ago

Yes, PxK sampler is critical to re-ID tasks, including supervised and unsupervised. And I think such a sampler also works for other fine-grained recognition tasks. Since it mainly targets at providing more intra-/inter-class information for training.