Code (based on pytorch 1.3, cuda 10.0, please check the 'requirements.txt' for reproducing the results) for our paper 'Contrast and Clustering: Learning Nearest Pair Representations for Source-free Domain Adaptation'(https://arxiv.org/pdf/2301.13428.pdf).
1.(update in 2023/5/27): (1)fix the error in training file;(2)upload the file "A simple example of tuple ”match“.ipynb" to helo better understand the tuple "match"
Download the VisDA, Office-Home, and Office-31