GithubHelp home page GithubHelp logo

geonyeong-park / mian Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 3.25 MB

The official repository for "Information-theoretic regularization for multi-source domain adaptation"

Home Page: https://arxiv.org/abs/2104.01568

Python 100.00%
domain-adaptation information-theory multi-source-domain-adaptation

mian's Introduction

Information-theoretic Regularization for Multi-source Domain Adaptation

Pytorch implementation of MIAN: Multi-source Information-regularized Adaptation Network. Provided as a supplementary code for ICCV 2021. Pytorch version: 1.4.0

Dataset

  • We support three multi-domain adaptation datasets:
    • Digits-Five (Peng et al., 2019): MNIST-M, MNIST, SVHN, SYNTH, USPS
    • Office-31 (Saenko et al., 2010): Amazon, Webcam, DSLR
    • Office-Home (Venkateswara et al., 2017): Art, Clipart, Realworld, Product
  • Every datasets should be downloaded in data/ directory following the order below:
    • data/{office/office_home}/{domain}/{class}/{images}
    • Digits-Five require .pkl files.
      • data/digits/{domain}/{train/val}.pkl
    • every words in path should be written in lower-case.
    • Due to memory issue, data and pretrained weights are not provided at this moment.

Train examples

python3 main.py --gpu 0 --task office --target Amazon --exp_name Amazon_test \ 
                        --advcoeff 0.1 --SVD_ld 0.0001 --no_MCD
  • advcoeff: $\lambda_0$ in paper
  • SVD_ld: $\mu_0$ in paper
    • Set to 0 for Vanila MIAN.
  • no_MCD: Run main.py without Maximum Classifier Discrepancy (MCD, Saito et al., 2018)
python3 main.py --gpu 0 --task office --target Amazon --partial_domain Amazon DSLR --exp_name Amazon_test_partial_DSLR \ 
                        --advcoeff 0.1 --SVD_ld 0.0001 --no_MCD
  • partial_domain: Specify domains to be utilized. (Includes target domain)

mian's People

Contributors

geonyeong-park avatar wasidennis avatar hfslyc avatar g-pichler avatar

Stargazers

VictorYrotciV avatar Jeongsol Kim avatar  avatar Eduardo Fernandes Montesuma avatar Guangyuan Hao avatar

Watchers

 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.