GithubHelp home page GithubHelp logo

caoyifan-110 / anime-face-acgan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alvinbhou/anime-face-acgan

0.0 1.0 0.0 77.16 MB

An ACGAN to generate anime faces with specific hair and eyes color

Python 99.90% Shell 0.10%

anime-face-acgan's Introduction

Anime-Face-ACGAN

Info

An ACGAN to generate anime faces with specific hair and eyes color.

Range of colors

Hair Eyes
orange gray
white black
aqua orange
gray pink
green yellow
red aqua
purple purple
pink green
blue brown
black red
brown blue
blonde

Dataset

Special thanks for 樊恩宇, TA of MLDS providing data. Data and tags are originally from konachan.

The tags(hair or eyes color) of each image can be tags_clean.csv

Usage

ACGAN_train.py

usage: ACGAN_train.py [-h] --uid UID [--train_path TRAIN_PATH]
                      [--gen_lr GEN_LR] [--dis_lr DIS_LR]
                      [--batch_size BATCH_SIZE] [--epochs EPOCHS]
                      [--latent LATENT]

Anime ACGAN

optional arguments:
  -h, --help            show this help message and exit
  --uid UID             training uid
  --train_path TRAIN_PATH
                        training data path
  --gen_lr GEN_LR       learning rate of generator
  --dis_lr DIS_LR       learning rate of discriminator
  --batch_size BATCH_SIZE
                        batch size for training
  --epochs EPOCHS       epochs for training
  --latent LATENT       latent size

generate.py

python generate.py [sample.txt]

This will generate images with the condition given in sample.txt. The format can be found at sample.txt

Images

GIF

Generated with given condition

Pink hair /w different eyes color

White hair /w different eyes color

Black hair Blue eyes

Red hair Green eyes

Random

Credits

Model and training is inspired by pavitrakumar78/Anime-Face-GAN-Keras

anime-face-acgan's People

Contributors

alvinbhou avatar

Watchers

James Cloos 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.