This repository contains the author's implementation in Pytorch for InCo(Intermediate Prototype Contrast for Unsupervised Domain Adaptation).
conda env create -f environment.yml
pip install -r requirements.txt
- Download or soft-link the dataset under
data
folder (Supported datasets are ImageCLEF, Office-31, Office-Home) - Run following command to train the InCo:
python inco/run.py --config config/${dataset}$/${task}$.json
python inco/run.py --config config/office/A-D-all.json
This code is built on PCS and TLlib. Thanks to the authors for sharing their codes.