ZhiyuanDang / NNM

The PyTorch official implementation of the CVPR2021 Poster Paper NNM: Nearest Neighbor Matching for Deep Clustering.
Other
59 stars 7 forks source link

doubt in class prediction #4

Closed gauravjain10 closed 2 years ago

gauravjain10 commented 2 years ago

hi @ZhiyuanDang One doubt I have now is where are you getting the templates from ? By template I mean what you are using to find Nearest Neighbour? Is it like you have a set of examples (templates) for each class, and you are computing distance between candidate images with those templates to label the test images ? I am really interested in the area of unsupervised image classification and this paper is trying to solve this problem.Please try to help me to clear my doubt. Another doubt what kind of issues you are facing in self-label script.

ZhiyuanDang commented 2 years ago

Please see the code (line 90 in utils/train_utils.py). We use larger L2-similarity to determine the Nearest Neighbour.

Sometimes, the self-label script may cause performance degernration. You can check the issues in SCAN work.

gauravjain10 commented 2 years ago

hi @ZhiyuanDang,

I will take a look in train_utils.py Thank you so much.