SIDE: Self-supervised Intermediate Domain Exploration for Source-free Domain Adaptation
This implementation is based on proxy.
- python == 3.9
- pytorch ==1.0.0
- torchvision == 0.2.1
- Please create the folder './data/.'.
- The datasets Office, Office-Home, VisDA-C can be obtained from the official websites. Please modify the path of images in each '.txt' under the folder './data/'.
- Train on the source domain
python source.py -dset office --s 0 --max_epoch 50
- Train on the target domain
python target.py --dset office --gpu_id 0 --s 1 --t 0 --max_epoch 100 --batch_size 64 python target.py --dset office --gpu_id 0 --s 2 --t 0 --max_epoch 100 --batch_size 64
If you find this code useful for your research, please cite our papers
SIDE: Self-supervised Intermediate Domain Exploration for Source-free Domain Adaptation