Giter Site home page Giter Site logo

atm's Introduction

ATM (Adversarial Tight Match)

Maximum Density Divergence for Domain Adaptation published on IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI)

Authors: Jingjing Li, Erpeng Chen, Zhengming Ding, Lei Zhu, Ke Lu and Heng Tao Shen

PDF on Arxiv: https://arxiv.org/abs/2004.12615 , on IEEE: https://ieeexplore.ieee.org/abstract/document/9080115

ATM implemented in PyTorch

Prerequisites

  • PyTorch >= 1.0.0 (with suitable CUDA and CuDNN version)
  • torchvision >= 0.2.2
  • Python3
  • Numpy
  • argparse
  • PIL

Training

Please use the following commands for different tasks.

You can find more detailed commands samples in the train.sh file

SVHN->MNIST
python train_svhnmnist.py --mdd_weight 0.01 --epochs 50

USPS->MNIST
python train_uspsmnist.py --mdd_weight 0.01 --epochs 50 --task USPS2MNIST

MNIST->USPS
python train_uspsmnist.py --mdd_weight 0.01 --epochs 50 --task MNIST2USPS
Office-31

python train_image.py  --net ResNet50 --dset office --test_interval 500 --s_dset_path ../data/office/amazon_list.txt --t_dset_path ../data/office/webcam_list.txt
Office-Home

python train_image.py  --net ResNet50 --dset office-home --test_interval 2000 --s_dset_path ../data/office-home/Art.txt --t_dset_path ../data/office-home/Clipart.txt
Image-clef

python train_image.py  --net ResNet50 --dset image-clef --test_interval 500 --s_dset_path ../data/image-clef/b_list.txt --t_dset_path ../data/image-clef/i_list.txt

The adversarial learning part is inspired by CDAN.

atm's People

Contributors

lijin118 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.