asahi417 / DeepDomainAdaptation

Tensorflow deep learning based domain adaptation model implementations with experiment of estimate MNIST by SVHN data (SVHN -> MNIST): DANN (domain-adversarial neural network), Deep JDOT (joint distribution optimal transportation)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deep Domain Adaptation

dep1 license

Tensorflow implementation of deep learning based domain adaptation models. See more in implemented algorithm.

Work in progress: Experiment results will be appeared soon!

Get started

git clone https://github.com/asahi417/DeepDomainAdaptation
cd DeepDomainAdaptation
pip install .
  • install error
    You might have install error if your environment dosen't have numpy and cython, due to the pot library. Then, import them before install this repo.
pip install numpy
pip install cython
pip install .

Script

This script converts dataset to tfrecord format.

usage: script_tfrecord.py [-h] --data [DATA]

optional arguments:
  -h, --help     show this help message and exit
  --data [DATA]  dataset name in dict_keys(['mnist', 'svhn'])

This script is to train models.

usage: script_train.py [-h] -m [MODEL] -e [EPOCH] [-v [VERSION]]

optional arguments:
  -h, --help            show this help message and exit
  -m [MODEL], --model [MODEL]
                        Model name in dict_keys(['dann', 'deep_jdot'])
  -e [EPOCH], --epoch [EPOCH]
                        Epoch
  -v [VERSION], --version [VERSION]
                        Checkpoint version if train from existing checkpoint

List of Models

About

Tensorflow deep learning based domain adaptation model implementations with experiment of estimate MNIST by SVHN data (SVHN -> MNIST): DANN (domain-adversarial neural network), Deep JDOT (joint distribution optimal transportation)

License:MIT License


Languages

Language:Python 100.0%