Giter Club home page Giter Club logo

atdoc's Introduction

Official implementation for ATDOC

[CVPR-2021] Domain Adaptation with Auxiliary Target Domain-Oriented Classifier

Below is the demo for ATDOC on a UDA task of Office-Home:

  1. installing packages

    python == 3.6.8 pytorch ==1.1.0 torchvision == 0.3.0 numpy, scipy, sklearn, PIL, argparse, tqdm

  2. download the Office-Home dataset

    mkdir dataset

    cd dataset

    pip install gdown

    gdown https://drive.google.com/u/0/uc?id=0B81rNlvomiwed0V1YUxQdC1uOTg&export=download

    unzip OfficeHomeDataset_10072016.zip

    mv ./OfficeHomeDataset_10072016/Real\ World ./OfficeHomeDataset_10072016/RealWorld

    cd ../

  3. run the main file with 'Source-model-only'

    python demo_uda.py --pl none --dset office-home --max_epoch 50 --s 0 --t 1 --gpu_id 0 --method srconly --output logs/uda/run1/

  4. run the main file with 'ATDOC-NC'

    python demo_uda.py --pl atdoc_nc --tar_par 0.1 --dset office-home --max_epoch 50 --s 0 --t 1 --gpu_id 0 --method srconly --output logs/uda/run1/

  5. run the main file with 'ATDOC-NA'

    python demo_uda.py --pl atdoc_na --tar_par 0.2 --dset office-home --max_epoch 50 --s 0 --t 1 --gpu_id 0 --method srconly --output logs/uda/run1/

  6. run the main file with 'ATDOC-NA' combined with 'CDAN+E'

    python demo_uda.py --pl atdoc_na --tar_par 0.2 --dset office-home --max_epoch 50 --s 0 --t 1 --gpu_id 0 --method CDANE --output logs/uda/run1/

  7. run the main file with 'ATDOC-NA' combined with 'MixMatch'

    python demo_mixmatch.py --pl none --dset office-home --max_epoch 50 --s 0 --t 1 --gpu_id 0 --output logs/uda/run1/

  8. run the main file with 'ATDOC-NA' combined with 'MixMatch'

    python demo_mixmatch.py --pl atdoc_na --dset office-home --max_epoch 50 --s 0 --t 1 --gpu_id 0 --output logs/uda/run1/

Citation

If you find this code useful for your research, please cite our paper

@inproceedings{liang2021domain,
    title={Domain Adaptation with Auxiliary Target Domain-Oriented Classifier},
    author={Liang, Jian and Hu, Dapeng and Feng, Jiashi},
    booktitle={IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
    year={2021}
}

Contact

atdoc's People

Contributors

tim-learn 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.