Giter Site home page Giter Site logo

transfer-kai / generate_to_adapt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yogeshbalaji/generate_to_adapt

0.0 0.0 0.0 15 KB

Implementation of "Generate To Adapt: Aligning Domains using Generative Adversarial Networks"

Home Page: https://arxiv.org/pdf/1704.01705.pdf

Python 100.00%

generate_to_adapt's Introduction

Generate_To_Adapt

Implementation of "Generate To Adapt: Aligning Domains using Generative Adversarial Networks" in PyTorch

Datasets:

Please download the dataset from http://www.cs.umd.edu/~yogesh/datasets/digits.zip and extract it. This folder contains the dataset in the same format as need by our code.

Training:

Let us train the Lenet model for SVHN->MNIST Domain adaptation. Obtain the baseline numbers by running

python main.py --dataroot [path to the dataset] --method sourceonly

To train our method(GTA), run

python main.py --dataroot [path to the dataset] --method GTA

This code trains and stores the trained models in result folder. Current checkpoint and the model that gives best performance on the validation set are stored.

Evaluation:

To evaluate the trained models on the target domain (MNIST), run

python eval.py --dataroot [path to the dataset] --method GTA --model_best False

Citation:

If you use this code for your research, please cite

@article{Gen2Adapt,
    author    = {Swami Sankaranarayanan and
           Yogesh Balaji and
           Carlos D. Castillo and
           Rama Chellappa},
    title     = {Generate To Adapt: Aligning Domains using Generative Adversarial Networks},
    journal   = {CoRR},
    volume    = {abs/1704.01705},
    year      = {2017},
    url       = {http://arxiv.org/abs/1704.01705},
}

generate_to_adapt's People

Contributors

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