Git Product home page Git Product logo

hda's Introduction

HDA implemented in PyTorch

code release for "Heuristic Domain Adaptation"(NIPS2020)

One sentence highlight

We address the construction of domain-invariant and domain-specific representations from the heuristic search perspective.

Poster

Enviroment

  • pytorch = 1.3.0
  • torchvision = 0.4.1
  • numpy = 1.17.2
  • pillow = 6.2.0
  • python3.7
  • cuda10

To install the required python packages, run

pip install -r requirements.txt

Dataset

Office-Home dataset can be found here.

Domainnet dataset can be found here.

The training of HDA could be utilized by changing the path of the dataset, such as the txt files in data/UDA_officehome/Art.txt.

Also, the txt files for SSDA and MSDA should be compressed.

cd data
unzip data.zip

Train

UDA on Office-Home

bash scripts/run_uda.sh

MSDA on Domainnet

bash scripts/run_msda.sh

SSDA on Domainnet

bash scripts/run_ssda.sh

Citation

If you use this code for your research, please consider citing:

@inproceedings{cui2020hda,
 author = {Cui, Shuhao and Jin, Xuan and Wang, Shuhui and He, Yuan and Huang, Qingming},
 booktitle = {Advances in Neural Information Processing Systems},
 pages = {7571--7583},
 publisher = {Curran Associates, Inc.},
 title = {Heuristic Domain Adaptation},
 volume = {33},
 year = {2020}
}


Contact

If you have any problem about our code, feel free to contact

or describe your problem in Issues.

Note

量子位

Supplemantary could be found in google driver and baidu cloud with 8yut.

hda's People

Contributors

cuishuhao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.