Skip to content

EreenKara/DeepLearningGAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

DeepLearningGAN

Generative Adversarial Networks project. From Photograph to Comic using Pix2PixGAN.

Learning Process

I didn't want to implement a deep learning model which i didn't know so I have looked at different GAN or Deep Learning Models. After all this literature review, I finally understand what is going on in deep learning and what is used for those lines, how I can give my pictures to model etc. I started with a Fashion Gan model training using MNIST dataset. GAN is a deep learning model that goals to create a picture which is looks like given dataset but a totally new picture. Two deep learning model fighting in this model and we want generator to win.

Fashion GAN

DATASET (MNIST)

Fashion Gan

After a few epochs. It is doing bad.

image

And final form, it is done. It can create new pictures that looks like MNIST but it is not MNIST.

image

CNN Example

I wanted to know how CNN works because FASHION GAN example used convolution in it as layers. I searched other layers and some of them are very basic and understandable, but convolution was different so I read articles about it. It is a mathematical operation like summation or subtraction but it is used to extract information from photo, and to reduce photo's resolution to be faster.

DATASET ( FROM INTERNET )

image

AFTER TRAINING

image

Another GAN example that different from first one

This project was my first deep learning project even fist machine learning project so all of those things were new to me. First GAN didn't satisfy me. I want to take a look to another example.

DATASET (CIFAR10)

image

First examples of photos.

image
I didn't train the model.

Conditional GAN

GAN but it is know what image is what. If we want to create a truck and give truck number's to model, it will create a truck rather than rest of them. Normal GAN doesn't have such a that feature.

DATASET

image

First examples

image
I didn't train the model. Conditional GAN wasn't my purpose.

Pix2Pix GAN (Finally My Purpose)

This Pix2Pix GAN has paried images. One pair is what we gives it and other pair is what it must create. Of course it is when model finally trained. In first, we load all paired images to model to trained it as "Dude look at those image when i give you something like that you have to create something like that, otherwise I will punish you with changing all of your parameter weights". Yeah, it is what it is.

I found a youtube video which implement PIX2PIX GAN using PIX2PIX paper and explain what is going on in paper.

The code was trained with satellite images but I wanted to make something interesting so first I tried to do model with Satellite images correctly and tried my real wish.

DATASET

image

Outputs of the Trained Model

image

PIX2PIX GAN USING COMIC DATASET

DATASET

image

Outpust of the Trained Model

image

ME

image

About

Generative Adversarial Networks project. From Photograph to Comic using Pix2PixGAN.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors