Generate Pokemon with Deep Learning

Introduction

This article is the 16th day article of Kinki University Advent Calendar 2019. I don't know what number it is, but Gan will generate an image of Pokemon. In the future, I would like to add an explanation of Pokédex to the generated image. The source code is here

DCGAN DCGAN was used for image generation. For details, refer to Paper. I used DCGAN-tensorflow for the implementation, but for some reason there was a bug in the official source code, so [fixed](https: / /github.com/mina-moto/DCGAN-tensorflow-pokemon) is used.

data set

I used the Pokemon images published in pokemon-images-dataset-by-type.

Environment

Docker image download

docker pull minamotofordocker/pokemon_generator:latest

Library import

setup.sh


#!/bin/sh

# Pokemon Image Data
git clone https://github.com/rileynwong/pokemon-images-dataset-by-type

# DCGAN
git clone https://github.com/mina-moto/DCGAN-tensorflow-pokemon

# Dataset setting
mkdir -p data/pokemon_image/
cp pokemon-images-dataset-by-type/all/* data/pokemon_image/

echo "Finish!"

Details of each command

Install Pokemon images.

git clone https://github.com/rileynwong/pokemon-images-dataset-by-type

Installation of DCGAN-tensorflow.

git clone https://github.com/mina-moto/DCGAN-tensorflow-pokemon

Change the location of the installed image.

mkdir -p data/pokemon_image/
cp pokemon-images-dataset-by-type/all/* data/pokemon_image/

Learning images with DCGAN

For parameter adjustment, I referred to this article.

docker run -v $PWD:/PokemonGenerator -w /PokemonGenerator -it --rm minamotofordocker/pokemon_generator:latest python DCGAN-tensorflow-pokemon/main.py --data_dir data/ --dataset pokemon_image --out_dir out/ --out_name pokemon_gan_sample --input_fname_pattern=*.png --input_height 120 --output_height 120 --train --epoch=5000 --batch_size=64 --learning_rate=0.001 --G_img_sum

Generated image

Learning (images generated every 200 epoch up to 4600 epoch).

train_run.gif

4600 Epoch eye image. Is there something like Pokemon? train_00004600.png

Recommended Posts

Generate Pokemon with Deep Learning
Machine learning learned with Pokemon
Try deep learning with TensorFlow
Deep Kernel Learning with Pyro
Try Deep Learning with FPGA
Deep Learning
Try Deep Learning with FPGA-Select Cucumbers
Cat breed identification with deep learning
Try deep learning with TensorFlow Part 2
Check squat forms with deep learning
Categorize news articles with deep learning
Forecasting Snack Sales with Deep Learning
Classify anime faces with deep learning with Chainer
Deep Learning Memorandum
Try with Chainer Deep Q Learning --Launch
Start Deep learning
Try deep learning of genomics with Kipoi
Sentiment analysis of tweets with deep learning
Python Deep Learning
PPLM: A simple deep learning technique to generate sentences with specified attributes
The story of doing deep learning with TPU
99.78% accuracy with deep learning by recognizing handwritten hiragana
First Deep Learning ~ Struggle ~
Learning Python with ChemTHEATER 03
Learning Python with ChemTHEATER 05-1
Python: Deep Learning Practices
Deep learning / activation functions
Deep Learning from scratch
Deep learning 1 Practice of deep learning
Deep learning / cross entropy
First Deep Learning ~ Preparation ~
First Deep Learning ~ Solution ~
"Minecraft where a heckler flies" Generate appropriate text with Deep Learning ~ Move with mod ~
[AI] Deep Metric Learning
Learning Python with ChemTHEATER 02
I tried deep learning
Learning Python with ChemTHEATER 01
Python: Deep Learning Tuning
Deep learning large-scale technology
Deep learning / softmax function
A story about predicting exchange rates with Deep Learning
Extract music features with Deep Learning and predict tags
Classify anime faces by sequel / deep learning with Keras
Try to build a deep learning / neural network with scratch
Play with reinforcement learning with MuZero
Deep Learning Gaiden ~ GPU Programming ~
<Course> Deep Learning: Day2 CNN
Ensemble learning summary! !! (With implementation)
Deep learning image recognition 1 theory
Deep running 2 Tuning of deep learning
Create an environment for "Deep Learning from scratch" with Docker
Reinforcement learning starting with Python
I asked Deep Learning if recent Pokemon are like Digimon.
About learning with google colab
Deep learning / LSTM scratch code
Machine learning with Python! Preparation
Rabbit Challenge Deep Learning 1Day
(Now) Build a GPU Deep Learning environment with GeForce GTX 960
Deep learning for compound formation?
Introducing Udacity Deep Learning Nanodegree
Recognize your boss and hide the screen with Deep Learning