All Projects → m516825 → Conditional Gan

m516825 / Conditional Gan

Licence: mit
Anime Generation

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Conditional Gan

Alae
[CVPR2020] Adversarial Latent Autoencoders
Stars: ✭ 3,178 (+2153.9%)
Mutual labels:  generative-adversarial-network, generative-model
Conditional Animegan
Conditional GAN for Anime face generation.
Stars: ✭ 70 (-50.35%)
Mutual labels:  generative-adversarial-network, generative-model
Seqgan
A simplified PyTorch implementation of "SeqGAN: Sequence Generative Adversarial Nets with Policy Gradient." (Yu, Lantao, et al.)
Stars: ✭ 502 (+256.03%)
Mutual labels:  generative-adversarial-network, generative-model
TriangleGAN
TriangleGAN, ACM MM 2019.
Stars: ✭ 28 (-80.14%)
Mutual labels:  generative-adversarial-network, generative-model
Generative Evaluation Prdc
Code base for the precision, recall, density, and coverage metrics for generative models. ICML 2020.
Stars: ✭ 117 (-17.02%)
Mutual labels:  generative-adversarial-network, generative-model
celeba-gan-pytorch
Generative Adversarial Networks in PyTorch
Stars: ✭ 35 (-75.18%)
Mutual labels:  generative-adversarial-network, generative-model
Mnist inception score
Training a MNIST classifier, and use it to compute inception score (ICP)
Stars: ✭ 25 (-82.27%)
Mutual labels:  generative-adversarial-network, generative-model
GraphCNN-GAN
Graph-convolutional GAN for point cloud generation. Code from ICLR 2019 paper Learning Localized Generative Models for 3D Point Clouds via Graph Convolution
Stars: ✭ 50 (-64.54%)
Mutual labels:  generative-adversarial-network, generative-model
Spectralnormalizationkeras
Spectral Normalization for Keras Dense and Convolution Layers
Stars: ✭ 100 (-29.08%)
Mutual labels:  generative-adversarial-network, generative-model
Lggan
[CVPR 2020] Local Class-Specific and Global Image-Level Generative Adversarial Networks for Semantic-Guided Scene Generation
Stars: ✭ 97 (-31.21%)
Mutual labels:  generative-adversarial-network, generative-model
py-msa-kdenlive
Python script to load a Kdenlive (OSS NLE video editor) project file, and conform the edit on video or numpy arrays.
Stars: ✭ 25 (-82.27%)
Mutual labels:  generative-adversarial-network, generative-model
Semantic image inpainting
Semantic Image Inpainting
Stars: ✭ 140 (-0.71%)
Mutual labels:  generative-adversarial-network, generative-model
pytorch-CycleGAN
Pytorch implementation of CycleGAN.
Stars: ✭ 39 (-72.34%)
Mutual labels:  generative-adversarial-network, generative-model
Generative models tutorial with demo
Generative Models Tutorial with Demo: Bayesian Classifier Sampling, Variational Auto Encoder (VAE), Generative Adversial Networks (GANs), Popular GANs Architectures, Auto-Regressive Models, Important Generative Model Papers, Courses, etc..
Stars: ✭ 276 (+95.74%)
Mutual labels:  generative-adversarial-network, generative-model
favorite-research-papers
Listing my favorite research papers 📝 from different fields as I read them.
Stars: ✭ 12 (-91.49%)
Mutual labels:  generative-adversarial-network, generative-model
Cadgan
ICML 2019. Turn a pre-trained GAN model into a content-addressable model without retraining.
Stars: ✭ 19 (-86.52%)
Mutual labels:  generative-adversarial-network, generative-model
pytorch-GAN
My pytorch implementation for GAN
Stars: ✭ 12 (-91.49%)
Mutual labels:  generative-adversarial-network, generative-model
simplegan
Tensorflow-based framework to ease training of generative models
Stars: ✭ 19 (-86.52%)
Mutual labels:  generative-adversarial-network, generative-model
Markov Chain Gan
Code for "Generative Adversarial Training for Markov Chains" (ICLR 2017 Workshop)
Stars: ✭ 76 (-46.1%)
Mutual labels:  generative-adversarial-network, generative-model
Cramer Gan
Tensorflow Implementation on "The Cramer Distance as a Solution to Biased Wasserstein Gradients" (https://arxiv.org/pdf/1705.10743.pdf)
Stars: ✭ 123 (-12.77%)
Mutual labels:  generative-adversarial-network, generative-model

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']
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].