Exploiting the Intrinsic Neighborhood Structure for Source-free Domain Adaptation (NeurIPS 2021)
Code for our NeurIPS 2021 paper 'Exploiting the Intrinsic Neighborhood Structure for Source-free Domain Adaptation'. [project] [paper] (The codes are based on our G-SFDA (ICCV 2021))
Note: In the code, we do not explicitly compute the self-regularization loss (you will find the comment in the code), instead we do not explicitly remove the self features in the nearest neighbor retriving where the occurrence frequency of self feature acts as a dynamic weight.
Download the VisDA and Office-Home (use our provided image list files) dataset. And denote the path of data list in the code. The code is expected to reproduce the results with PyTorch 1.3 with cuda 10.0.
You can find all the training log files and the weights (before and after the adaptation) on VisDA and Office-Home in this link. If you want to reproduce the results quickly, please use the provided source model.
First train the model on source domain, then do target adaptation without source data:
Code for Office-Home is in the 'office-home' folder.
Code in the folder 'pointDA-10' is based on PointDAN. Run the src.sh for source pretraining and tar.sh for source-free domain adaption.