Giter VIP home page Giter VIP logo

conditional-gan's Introduction

Conditional GAN

Conditional Generative Adversarial Networks for anime generation (AnimeGAN).

image
Training results dump every 500 min-batch in 25 epoch(26000th min-batch) for the following tags

  • blue hair blue eyes
    image
  • gray hair green eyes
    image
  • green hair red eyes
    image
  • orange hair brown eyes
    image
  • blonde hair gray eyes
    image
  • pink hair aqua eyes
    image

Sample training data

image

Environment

python3
tensorflow 1.0
scipy

Model structure

image

Data

source link
google drive link

Usage

  1. Download hw3 data from data link, place the MLDS_HW3_dataset/ in the same directory and unzip the face.zip in MLDS_HW3_dataset/
  2. Replace the tags in MLDS_HW3_dataset/sample_testing_text.txt to the right format.
  3. Start training !

Train

First time use, you need to do the preprocessing

$ python3 main.py --prepro 1

If you already have done the preprocessing

$ python3 main.py --prepro 0

Model

  • dcgan structure
  • use one hot encoding for condition tags

Test

This code will automatically dump the results for the tags specified in MLDS_HW3_dataset/sample_testing_text.txt every dump_every batches to the test_img/ folder.

Testing tags format

1,<Color> hair <Color> eyes 
2,<Color> hair <Color> eyes
3,<Color> hair <Color> eyes
4,<Color> hair <Color> eyes
.
.
.
  • Possible colors for eyes
['<UNK>', 'yellow', 'gray', 'blue', 'brown', 'red', 'green', 'purple', 'orange',
 'black', 'aqua', 'pink', 'bicolored']
  • Possible colors for hair
['<UNK>', 'gray', 'blue', 'brown', 'red', 'blonde', 'green', 'purple', 'orange',
 'black', 'aqua', 'pink', 'white']

conditional-gan's People

Contributors

m516825 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.