GithubHelp home page GithubHelp logo

lukashedegaard / ccsa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samotiian/ccsa

0.0 2.0 0.0 343.61 MB

"Unified Deep Supervised Domain Adaptation and Generalization" (ICCV 2017)

Python 98.14% Shell 1.86%

ccsa's Introduction

CCSA: "Unified Deep Supervised Domain Adaptation and Generalization" (ICCV 2017)

Changes from original repository

This is a modified version of the original repository. We made the following modifications:

  • Upgrade code to Python 3.6 and Tensorflow 1.15
  • Add Conda environment
  • Externalise experiment parameters (now command line arguments)
  • Fix major bug in model training (the original version trained a model for 10 consequtive repetitions without resetting the model parameters. This gave the model 10x the expected data for training)

Requirements

conda env create -f environment.yml

Introduction

This repository provides the implementation of the paper "Unified Deep Supervised Domain Adaptation and Generalization" published in ICCV 2017. It also contains the training/testing splits of two cross domain adaptation task (MNIST->USPS and USPS->MNIST).

We are interested in the supervised domain adaptation when very few labeled target samples are available in training (from 1 to 7).

Experimental setting involves randomly selecting 2000 images from MNIST and 1800 images from USPS. Here, we randomly selected n labeled samples per class from target domain data and used them in training. We evaluated our approach for n ranging from 1 to 7 and repeated each experiment 10 times. Therefore, we provided data we used to generate the results. Data files are located in the 'row_data' subdirectory.

"We encourage researchers to use this data for comparison."

Implementation

To reproduce the results of the paper you just need to run main.py. There are three main parameters:

  1. sample_per_class = 1 or 2 or ... or 7 (sample_per_class specifies the number of labeled target data per class.)

  2. repetition = 0 or 2 or ... or 9. (We repeat the experiments 10 times and report the average accuracies.)

  3. domain_adaptation_task = 'MNIST_to_USPS' or 'USPS_to_MNIST'

There are some other hyperparameters that you may change for the new dataset.

Citation

@InProceedings{motiian2017CCSA, Title = {Unified Deep Supervised Domain Adaptation and Generalization},

Author = {Motiian, Saeid and Piccirilli, Marco and Adjeroh, Donald A. and Doretto, Gianfranco},

Booktitle = {IEEE International Conference on Computer Vision (ICCV)},

Year = {2017}}

For more information:

http://vision.csee.wvu.edu/~motiian/Details/CCSA.html

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.