Drit Tensorflow

Simple Tensorflow implementation of "Diverse Image-to-Image Translation via Disentangled Representations" (ECCV 2018 Oral)
Alternatives To Drit Tensorflow
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Gold Miner32,101
a day ago5
🥇掘金翻译计划,可能是世界最大最好的英译中技术社区,最懂读者和译者的翻译平台:
Deeplearningexamples10,561
2 days ago227Jupyter Notebook
State-of-the-Art Deep Learning scripts organized by models - easy to train and deploy with reproducible accuracy and performance on enterprise-grade infrastructure.
Docs5,691
a day ago11apache-2.0Jupyter Notebook
TensorFlow documentation
Seq2seq5,300
2 years ago194apache-2.0Python
A general-purpose encoder-decoder framework for Tensorflow
Transformer3,882
6 days ago134apache-2.0Python
A TensorFlow Implementation of the Transformer: Attention Is All You Need
Zhihu3,228
2 years ago31Jupyter Notebook
This repo contains the source code in my personal column (https://zhuanlan.zhihu.com/zhaoyeyu), implemented using Python 3.6. Including Natural Language Processing and Computer Vision projects, such as text generation, machine translation, deep convolution GAN and other actual combat code.
Lingvo2,698
a day ago116apache-2.0Python
Lingvo
Openseq2seq1,393
2 years ago85apache-2.0Python
Toolkit for efficient experimentation with Speech Recognition, Text2Speech and NLP
Opennmt Tf1,36893a month ago95June 02, 202223mitPython
Neural machine translation and sequence learning using TensorFlow
Docs L10n592
a day ago1apache-2.0Jupyter Notebook
Translations of TensorFlow documentation
Alternatives To Drit Tensorflow
Select To Compare


Alternative Project Comparisons
Readme

DRIT-Tensorflow

Simple Tensorflow implementation of Diverse Image-to-Image Translation via Disentangled Representations (ECCV 2018 Oral)

Pytorch version

Requirements

  • Tensorflow 1.8
  • python 3.6

Usage

Download Dataset

├── dataset
   └── YOUR_DATASET_NAME
       ├── trainA
           ├── xxx.jpg (name, format doesn't matter)
           ├── yyy.png
           └── ...
       ├── trainB
           ├── zzz.jpg
           ├── www.png
           └── ...
       ├── testA
           ├── aaa.jpg 
           ├── bbb.png
           └── ...
       └── testB
           ├── ccc.jpg 
           ├── ddd.png
           └── ...
           
├── guide.jpg (example for guided image translation task)

Train

python main.py --phase train --dataset summer2winter --concat True

Test

python main.py --phase test --dataset summer2winter --concat True --num_attribute 3

Guide

python main.py --phase guide --dataset summer2winter --concat True --direction a2b --guide_img ./guide.jpg

Tips

  • --concat

    • True : for the shape preserving translation (summer <-> winter) (default)
    • False : for the shape variation translation (cat <-> dog)
  • --n_scale

    • Recommend n_scale = 3 (default)
    • Using the n_scale > 1, a.k.a. multiscale discriminator often gets better results
  • --n_dis

    • If you use the multi-discriminator, then recommend n_dis = 4 (default)
    • If you don't the use multi-discriminator, then recommend n_dis = 6
  • --n_d_con

    • Author use n_d_con = 3 (default)
    • Model can still generate diverse results with n_d_con = 1
  • --num_attribute (only for the test phase)

    • If you use the num_attribute > 1, then output images are variously generated

Summary

Comparison

comparison

Architecture

true false

Train phase

train_1 train_2

Test & Guide phase

test

Results

result_1 result_2

Related works

Author

Junho Kim

Popular Translation Projects
Popular Tensorflow Projects
Popular Data Processing Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python
Tensorflow
Translation
Image Translation