GithubHelp home page GithubHelp logo

pytorch_dan's Introduction

Pytoch_DAN

This is a simple implementation of Learning Transferable Features with Deep Adaptation
Networks
with pytorch. This paper introduced a simple and effective method for
accomplishing domian adaptation with MMD loss. According to this paper,
multi-layer features are adapted with MMD loss. In this paper, model is based
on AlexNet and tested on several datasets, while this work just utilizes
LeNet and tests on MNIST and MNIST_M datasets. The original implementation
in caffe is here.

Data

In this work, MNIST and MNIST_M datasets are used in experiments. MNIST dataset
can be downloaded with torchvision.datasets. MINIST_M dataset can be downloa-
ded at Yaroslav Ganin's homepage. Then you can extract the file to your data dire-
ctory and run the preprocess.py to make the directory able to be used with
torchvision.datasets.ImageFolder:

python preprocess.py

If you could not download MNIST_M dataset from Yaroslav Ganin's homepage, you cou-
ld download it from MEGA Cloud. Once you download it, then you just need to unzip
the file to /data and the preprocess.py should not be used.

Experiments

You can run main.py to implements the MNSIT experiments. This work's results
are as follows:

Method Target Acc(this work)
Source Only 0.5189
DAN 0.5829

pytorch_dan's People

Contributors

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