Code release for Unsupervised Domain Adaptation through Self-Supervision.
Our code requires pytorch version 1.0 or higher.
install with pip install -r requirements.txt --user
- Modify the scripts in
scripts/.--outfsets the output folder, and--data_rootsets the input data folder. - Run the scripts in
scripts/. Each script corresponds to a column in our results table. show_table.pyprints the results and plots the error curves. For ease of comparison, two results are printed: the smallest error and the early stopping error according to our selection heuristics.figure_mmd.pyreproduces the two convergence figures shown in our paper.
The datasets used for each command are downloaded automatically to --data_root.