Anime Character Face Generator
This is an anime character face generator implemented in Tensorflow.
Given some text descriptions, the model is capable to generate some anime character faces that fit the descriptions.
The model is based on conditional Least Squares Generative Adversarial Networks (LSGAN).
The training data are images of anime character faces.
They are better to be squared, since those images will be resized to 64*64.
Due to the storage limit of Github, only 200 pictures are uploaded as samples.
More training data can be downloaded here.
Thanks to En-Yu Fan for collecting the training data.
Given text descriptions, the model will generate corresponding images with size 64*64.
|blue hair red eyes|
|pink hair green eyes|
|black hair yellow eyes|
First, put your training data under
Second, please clone skip-thoughts and put it under
Third, put your Tensorflow model under
./model/LSGAN/ if any.
The directory structure under
./model/ will be
python3 LSGAN.py --train
Test (Generate Images)
After executing the following commands, the images will be generated under
python3 LSGAN.py --generate -t [Description File] -n [# image per description]
[Description File]: A text file that contains descriptions. See description.txt as an example.
[# image per description]: Number of images that will be generated per desciprtion. Recommended number: 1.
The code is modified from text-to-image.