项目作者: danielchyeh

项目描述 :
Tensorflow implementation of Conditional Generative Adversarial Network (CGAN) automatically generates anime images
高级语言: Python
项目地址: git://github.com/danielchyeh/Comics_Generation.git
创建时间: 2018-03-23T09:41:56Z
项目社区:https://github.com/danielchyeh/Comics_Generation

开源协议:

下载


Comics_Generation in TensorFlow

NTU MLDS2017 Project 4

Project Link: https://www.csie.ntu.edu.tw/~yvchen/f106-adl/A4

Tensorflow implementation of Conditional Generative Adversarial Network (CGAN) automatically generates anime images based on given constraints (ex: green hair, blue eyes ..etc). The images are synthesized using the GAN-CLS Algorithm from the paper Generative Adversarial Text-to-Image Synthesis. The following is the model structure.

image

Image source is from the paper Generative Adversarial Text-to-Image Synthesis.

Dataset

  1. Download Dataset from link above.

  2. Run the shell script!

    1. ./run.sh [test file]
  • [test file] should be in the main folder. You can modify content if want different result.

    Training

  • In image_generation.py, change mode = 1 (line 20) to be mode = 0, then do the Quick Start!

    Demo Results

  • We test our model with test file below (testing_text.txt)
  1. 1,blue hair blue eyes
  2. 2,grey hair green eyes
  3. 3,green hair red eyes
  4. 4,red hair green eyes
  5. 5,green hair blue eyes
  • Generated Samples

image

References