[PYTHON] I implemented DCGAN and tried to generate apples

Introduction

As the title says, I tried to grow apples using DCGAN. Click here for the DCGAN paper (https://arxiv.org/abs/1511.06434) I don't know if it's dirty and helpful, but I also tried implementing it → Implementation as a result out_at_990.jpg

Has been generated. It's almost an apple.

table of contents

  1. Structure
  2. Implementation
  3. Apple production

1. Structure

The structure of the Generator is as follows. Screen Shot 2020-03-15 at 21.21.47.png

Generates $ Z $ (leftmost) that follows a uniform distribution, repeats convolution, and generates an image.

2. Implementation

It's dirty, but I implemented it in here. By the way, I referred to here.

3. Apple production

For the data, I used 498 apple images from here in Kaggle's dataset. I turned 1000 epochs with a batch size of 128. You can generate it nicely.

1584283443.gif

Recommended Posts

I implemented DCGAN and tried to generate apples
I tried to implement and learn DCGAN with PyTorch
I tried to debug.
I tried to paste
I tried to generate a random character string
I implemented the VGG16 model in Keras and tried to identify CIFAR10
[Introduction to PID] I tried to control and play ♬
I tried to read and save automatically with VOICEROID2 2
I tried adding post-increment to CPython. Overview and summary
I tried to automatically read and save with VOICEROID2
I tried to generate ObjectId (primary key) with pymongo
I tried adding system calls and scheduler to Linux
I tried to automatically generate a password with Python3
I tried to implement Grad-CAM with keras and tensorflow
I tried to install scrapy on Anaconda and couldn't
I tried to organize SVM.
I tried to implement PCANet
I tried to reintroduce Linux
I tried to introduce Pylint
I tried to summarize SparseMatrix
I tried to touch jupyter
I tried to implement StarGAN (1)
I tried to predict and submit Titanic survivors with Kaggle
I tried to combine Discord Bot and face recognition-for LT-
I tried to get Web information using "Requests" and "lxml"
I tried to illustrate the time and time in C language
I tried to display the time and today's weather w
[Introduction to infectious disease model] I tried fitting and playing ♬
[Celebration: Market capitalization $ 2 trillion] I tried to visualize Apple's patent
I tried to enumerate the differences between java and python
I tried to make GUI tic-tac-toe with Python and Tkinter
I tried to create Quip API
I tried to touch Python (installation)
I tried to implement adversarial validation
I tried to explain Pytorch dataset
I tried Watson Speech to Text
I tried to touch Tesla's API
I tried to implement hierarchical clustering
I tried to organize about MCMC.
I tried to implement Realness GAN
I tried to move the ball
I tried to estimate the interval.
I tried to visualize bookmarks flying to Slack with Doc2Vec and PCA
I tried to let Pepper talk about event information and member information
I tried to make a periodical process with Selenium and Python
I tried to create Bulls and Cows with a shell program
I tried to easily detect facial landmarks with python and dlib
Generate PowerPoint material for "I tried to sing with XX" [python-pptx]
I tried to extract players and skill names from sports articles
I tried to create a linebot (implementation)
I tried to summarize Python exception handling
I tried to implement PLSA in Python
I tried using Azure Speech to Text.
I tried to summarize until I quit the bank and became an engineer
I tried using Twitter api and Line api
I tried moving the image to the specified folder by right-clicking and left-clicking
I tried to implement Autoencoder with TensorFlow
I tried to summarize the umask command
I tried to implement permutation in Python
I tried to create a linebot (preparation)
I tried to visualize the age group and rate distribution of Atcoder