GithubHelp home page GithubHelp logo

wannature / decota Goto Github PK

View Code? Open in Web Editor NEW

This project forked from loyoyang/decota

0.0 0.0 0.0 154.8 MB

ICCV 2021: Deep Co-Training with Task Decomposition for Semi-supervised Domain Adaptation

Python 100.00%

decota's Introduction



Requirements

The code is developed under Python 3.6.5 and PyTorch 1.4.0

To install, pip install -r requirements.txt


Prepare dataset

To reproduce the DomainNet results, download DomainNet from http://ai.bu.edu/M3SDA/ following the instructions on the page.

Your dataset root is expected to contain folders named after all the domains, for example:

PATH-TO-DATASET-ROOT/clipart


Train your own model

There are seven adaptation scenarios in the DomainNet experiment.

Specify the Source and Target domain by either

--source X --target Y or --st X_Y_index

Example to reproduce the DomainNet 3-shot result, from Real to Clipart (X_Y_index=1), saving checkpoint:

python main.py --root PATH-TO-DATASET-ROOT/ --st 1 --save_check

Results will be saved at ./record/multi/mico Checkpoint will be saved at ./checkpoint


Eval

Example to evaluate a saved model at iteration 20000 from ./checkpoint, from Real to Clipart:

python main.py --root PATH-TO-DATASET-ROOT/ --st 1 --eval --net_resume Net_iter_model_mico_real_to_clipart_step_20000.pth.tar

decota's People

Contributors

loyoyang avatar mileyan 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.