Coder Social home page Coder Social logo

ml-lab / wasserstein-adversarial-domain-adaptation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kevinlyu/wasserstein-adversarial-domain-adaptation

0.0 2.0 0.0 5.51 MB

Wasserstein Based Domain Adaptation Model

Python 99.30% MATLAB 0.70%

wasserstein-adversarial-domain-adaptation's Introduction

Wasserstein Adversarial Domain Adaptation Model for Image Recognition

In this respository, we implmented our proposed Wasserstein adversarial domain adaptation (WADA) model for object recognition. Download link for dataset used to evaluate the model can be find in "data description" section.

Our WADA model consists of source extractor, target extractor, task classifier, feature relator, and domain discriminator. Since optimal transport based metric like Wasserstein distance can avoid gradient vanishing caused in $f$-divergence, we apply it in adversarial domain adaptation model to stablize the training process and improve adaptation performance. In addition to traditional benchmark and task, we also apply our model to partial transfer learning issue which combined with regression form of GAN and relevance machenism to decide the weight of each pile during optimizing stage.

Data Description

  • Digit dataset
    • MNIST
    • MNISTM
    • USPS
  • Office dataset
    • Amazon
    • DSLR
    • Webcam

Experimental Settings

  • Framework

    • Pytorch 0.4.1
  • Hardware

    • CPU: Intel Core i7-7700 @3.60 GHz
    • RAM: DDR3 2400MHz 64GB
    • GPU: Geforce GTX 1080Ti 11GB
    • CUDA Version: 9.0.176
    • CuDNN Version: 7.1.1

Experimental Results

Data distribution before adaptation trainning

Here blue region represents source domain and red regrion represents target domain
From left to right are t-SNE embedding plot of MNISTM, USPS, and Office dataset rspectively


Following sections are the results of our model under partial and non-partial setting
To better visualize adaptation performance, we color the t-SNE plot according to domain and class

  • left hand side: colored by data domain
  • right hand side: colored by data class

Non partial domain adaptation results

  • MNISTM

  • USPS

  • Office

Partial domain adaptation results

  • MNISTM

  • USPS

  • Office

wasserstein-adversarial-domain-adaptation's People

Contributors

kevinlyu avatar

Watchers

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