Git Product home page Git Product logo

ufdn's Introduction

UFDN - Pytorch Implementation

Description

This is a PyTorch implementation of my paper A Unified Feature Disentangler for Multi-Domain Image Translation and Manipulation (UFDN) accepted by NIPS 2018. Please feel free to use/modify them, any bug report or improvement suggestion will be appreciated.

Model

For more detailed information, please refer to the paper.

Application

  • Image-to-Image translation / Cross-domain image generation

    With domain invariant representation, domain vector and unified decoder, UFDN is able to perform (a) continuous image translation across different domains and/or attributes at interest (b) image generation across different domains. Pre-trained model & dataset are available, see next section.

  • Unsupervised domain adaption (UDA)

    UDA can be addressed via the domain invariant representation learned by UFDN. As reported in the paper, UFDN's UDA performance on digit dataset is the current state-of-the-art. The figure visualizes the domain invariant representation learned by our UFDN, colored w.r.t. (a) dataset (b) digit.

    Model trained on MNIST and tested on SVHN is available here, it's logger is also available here. This model was trained with the example config identical to the paper, recording accuracy 0.9579 on SVHN testing setting.

Requirements

Execution Environment
  • Python 3
  • CUDA & GPU available device
Packages

Setup

Download pretrained model & dataset

Dataset is available here. To run the code, please download and place it under data/. Human face dataset is currently unavailible due to CelebA's prohibition of futher publication, we will make it availible if we get the premission in the future. Pretrained model is also available here, you can download it if you'd like to try.

Train your own model

To train UFDN, make sure all requirements are satisfied and run

python3 train_face.py <path/to/config>

See example config for more options avialible. Please refer to the paper's supplementary for config used in the main paper.

Training log & inference

To see learning curve and some translation/generation result, use tensorboard to access training log (location specified in config). E.g. tensorboard --logdir=log/

Notes

  • face_hd is the config for demo (image-to-image translation) only.
  • For UDA reproducibility, please refer to the supplemental of main paper and also issue #6 for more experiment config/settings.

Reference

Please cite the article:

"A Unified Feature Disentangler for Multi-Domain Image Translation and Manipulation" Alexander H. Liu, Yen-Cheng Liu, Yu-Ying Yeh, Yu-Chiang Frank Wang, NIPS'18

Please also cite the article if you find the face dataset helpful:

"Detach and Adapt: Learning Cross-Domain Disentangled Deep Representation" Yen-Cheng Liu, Yu-Ying Yeh, Tzu-Chien Fu, Sheng-De Wang, Wei-Chen Chiu, Yu-Chiang Frank Wang, CVPR'18 (spotlight)

ufdn's People

Contributors

alexander-h-liu 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.