[course site]
#DLUPC
Kevin McGuinness
kevin.mcguinness@dcu.ie
Research Fellow
Insight Centre for Data Analytics
Dublin City University
Generative models and
adversarial training
What is a generative model?
ϴ
●
●
○
○
P(X = x)
x
x
2
Why are generative models important?
●
●
●
●
●
●
●
3
Generative adversarial networks
●
●
4
Generative adversarial networks (conceptual)
Generator
Real world
images
Discriminator
Real
Loss
Latentrandomvariable
Sample
Sample
Fake
5
The generator
6
The discriminator
conv
conv
...
F F
7
Training GANs
Generator
Real world
images
Discriminator
Real
Loss
Latentrandomvariable
Sample
Sample
Fake
Alternate between training the discriminator and generator
Differentiable module
Differentiable module
8
Generator
Real world
images
Discriminator
Real
Loss
Latentrandomvariable
Sample
Sample
Fake
1. Fix generator weights, draw samples from both real world and generated images
2. Train discriminator to distinguish between real world and generated images
Backprop error to
update discriminator
weights
9
Generator
Real world
images
Discriminator
Real
Loss
Latentrandomvariable
Sample
Sample
Fake
1. Fix discriminator weights
2. Sample from generator
3. Backprop error through discriminator to update generator weights
Backprop error to
update generator
weights
10
Training GANs
●
●
11
Discriminator
training
Generator
training
12
Some examples of generated
images…
13
ImageNet
Source:
https://openai.com/blog/generative-models/
14
CIFAR-10
Source:
https://openai.com/blog/generative-models/
15
Credit:
Alec Radford
Code on GitHub 16
Credit: Alec Radford Code on GitHub 17
Issues
●
●
●
●
18
Conditional GANs
●
●
19
Generating images/frames conditioned on
captions
20
Predicting the future with adversarial training
21
Mathieu et al. Deep multi-scale video prediction beyond mean square error, ICLR 2016 (https://arxiv.org/abs/1511.05440) 22
Image super-resolution
(Ledig et al. 2016)
23
Image super-resolution
(Ledig et al. 2016)
24
Image-to-Image translation
Generator
Discriminator
Generated
pairs
Real World
Ground truth
pairs
Loss
25
Questions?

Generative Models and Adversarial Training (D3L4 2017 UPC Deep Learning for Computer Vision)