Skip to content

This repository provides code for the paper ---- On Universal Black-Box Domain Adaptation.

License

Notifications You must be signed in to change notification settings

Gorilla-Lab-SCUT/UB2DA

Repository files navigation

[On Universal Black-Box Domain Adaptation]

This repository provides code for the paper ---- On Universal Black-Box Domain Adaptation.

Environment

Python 3.8.5, Pytorch 1.4.0 with CUDA, Torch Vision 0.5.0, and the Nvidia apex library Apex. For details of our running environment , please see requirement.txt.

Data preparation

Office31

Office-Home

DomainNet

Prepare dataset in data directory as follows.

'''

./data/Office31/amazon/...

./data/Office31/dslr/...

./data/Office31/webcam/...

./data/OfficeHome/Art/...

./data/OfficeHome/Clipart/...

./data/OfficeHome/Product/...

./data/OfficeHome/Real_World/...

./data/DomainNet/painting/...

./data/DomainNet/sketch/...

./data/DomainNet/real/...

'''

Train

'''

sh script/run_office31.sh $gpu-id

sh script/run_officehome.sh $gpu-id

sh script/run_domainNet.sh $gpu-id

'''

Reference

This repository is contributed by Bin Deng. If you consider using this code or its derivatives, please consider citing:

@misc{deng2021universal,
      title={On Universal Black-Box Domain Adaptation}, 
      author={Bin Deng and Yabin Zhang and Hui Tang and Changxing Ding and Kui Jia},
      year={2021},
      eprint={2104.04665},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

About

This repository provides code for the paper ---- On Universal Black-Box Domain Adaptation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published