0% found this document useful (0 votes)
120 views22 pages

GANS

Uploaded by

Hager Fathy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views22 pages

GANS

Uploaded by

Hager Fathy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

WHAT ARE GANS?

Generative Adversarial Networks


WHAT ARE GANS?
Generative Adversarial Networks

Generative Models
We try to learn the underlying the distribution
from which our dataset comes from.
Eg: Variational AutoEncoders (VAE)
WHAT ARE GANS?
Generative Adversarial Networks

Generative Models
We try to learn the underlying the distribution
from which our dataset comes from.
Eg: Variational AutoEncoders (VAE)

x ~ (training set) Encoder P(z) Decoder


WHAT ARE GANS?
Generative Adversarial Networks

Generative Models
We try to learn the underlying the distribution
from which our dataset comes from.
Eg: Variational AutoEncoders (VAE)

Adversarial Training
GANS are made up of two competing networks (adversaries)
that are trying beat each other.
WHAT ARE GANS?
Generative Adversarial Networks

Generative Models Neural Networks


We try to learn the underlying the distribution
from which our dataset comes from.
Eg: Variational AutoEncoders (VAE)

Adversarial Training
GANS are made up of two competing networks (adversaries)
that are trying beat each other.
WHAT ARE GANS?

Generated
P(z) Generator
Data
WHAT ARE GANS?

Generated
P(z) Generator
Data

Discriminator Real/Fake?
WHAT ARE GANS?

Generated
P(z) Generator
Data

Discriminator Real/Fake?

Real
Data
HOW TO TRAIN A GAN?
HOW TO TRAIN A GAN?
At t = 0,

Latent Generated
Generator (fake image)
Vector Image

Generated
(fake data)
Data

Discriminator Real/Fake?
Given
(Real data)
Training
Data
HOW TO TRAIN A GAN?
At t = 0,

Latent Generated
Generator (fake image)
Vector Image

Binary
Classifier
Generated
(fake data)
Data

Discriminator Real/Fake?
Given
(Real data)
Training
Data
HOW TO TRAIN A GAN?
Which network should I train first?
HOW TO TRAIN A GAN?
Which network should I train first?
Discriminator!
HOW TO TRAIN A GAN?

Which network should I train first?


Discriminator!

But with what training data?


HOW TO TRAIN A GAN?

Which network should I train first?


Discriminator!

But with what training data?


The Discriminator is a Binary classifier.
The Discriminator has two class - Real and Fake.
The data for Real class if already given: THE TRAINING DATA
The data for Fake class? -> generate from the Generator
HOW TO TRAIN A GAN?
What’s next? -> Train the Generator

But how? What’s our training objective?


HOW TO TRAIN A GAN?
What’s next? -> Train the Generator

But how? What’s our training objective?


Generate images from the Generator
such that they are classified incorrectly by the Discriminator!
HOW TO TRAIN A GAN?

Discriminator

Step 1:
Train the Discriminator
using the current ability
of the Generator.
HOW TO TRAIN A GAN?

Discriminator Generator

Step 1: Step 2:
Train the Discriminator Train the Generator
using the current ability to beat
of the Generator. the Discriminator.
HOW TO TRAIN A GAN?

Discriminator Generator

Step 1: Step 2:
Train the Discriminator Train the Generator
using the current ability to beat
of the Generator. the Discriminator.

Generate images from the Generator


such that they are classified incorrectly by the Discriminator!
HOW TO TRAIN A GAN?

Discriminator Generator

Step 1: Step 2:
Train the Discriminator Train the Generator
using the current ability to beat
of the Generator. the Discriminator.
MNIST AND FASHION-MNIST

You might also like