KEMBAR78
Generative Adversarial Networks by Tariq Rashid | PPTX
Generative Adversarial
Networks with PyTorch
Tariq Rashid
Tech Exeter, Dec 2019
https://tinyurl.com/wj9dzk7
Me
Art
Portrait of Edmond Belamy, 2018
https://www.christies.com/features/A-collaboration-between-two-artists-one-human-one-a-machine-9332-1.aspx
Art
https://github.com/robbiebarrat/art-DCGAN/blob/master/README.md
https://robbiebarrat.github.io
Art
https://github.com/robbiebarrat/art-DCGAN/blob/master/README.md
https://robbiebarrat.github.io
Art
https://twitter.com/DrBeef_/status/1127456165959487489
https://robbiebarrat.github.io
Machine Learning and Neural Networks
Machine Learning and Neural Networks
Machine Learning and Neural Networks
Machine Learning and Neural Networks
http://makeyourownneuralnetwork.blogspot.com
Generative Adversarial Networks
pavlovian learning
?
Generative Adversarial Networks
Generative Adversarial Networks
https://medium.com/@devnag/generative-adversarial-networks-gans-in-50-lines-of-code-pytorch-e81b79659e3f
PyTorch Basics
MNIST
MNIST Dataset
GANs - 2-dimensional MNIST
2 epochs
6 epochs
GANs - 2-dimensional MNIST
https://arxiv.org/pdf/1708.02556.pdf
GANs - 2-dimensional MNIST
Improving GAN Performance
... or even just making them work!
GANs - 2-dimensional MNIST
leaky RELU
strong gradient
avoids vanishing
gradient
GANs - 2-dimensional MNIST
layer / batch
normalisation
https://towardsdatascience.com/intuit-and-implement-batch-normalization-c05480333c5b
GANs - 2-dimensional MNIST
1 epoch
GANs - 2-dimensional MNIST
2 epochs
GANs - 2-dimensional MNIST
4 epochs
GANs - 2-dimensional MNIST
8 epochs
GANs - 2-dimensional MNIST
2 epochs on 60,000 training set
remember the generator
has not seen the data !
GANs - full-colour photos of faces
CelebA dataset
202,599 faces
(i’m only using 20,000)
http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html
HDF5 format is useful for
large data (and slow io like
colab)
GANs - full-colour photos of faces
218 x 178 x 3
218 x 178 x 3
100
1
218 x 178 x 3
218 x 178 x 3
300
100
DiscriminatorGenerator
GANs - full-colour photos of faces
Discriminator
Generator
simple architecture
GANs - full-colour photos of faces
will such a simple architecture
work?
GANs - full-colour photos of faces
experiment yourself !
GANs - full-colour photos of faces
Learning Localised Image Features
https://devblogs.nvidia.com/deep-learning-nutshell-core-concepts/
GANs - full-colour photos of faces
epochs = 1
GANs - full-colour photos of faces
epochs = 2
GANs - full-colour photos of faces
epochs = 4
GANs - full-colour photos of faces
epochs = 6
GANs - full-colour photos of faces
epochs = 8
GANs - full-colour photos of faces
epochs = 10
GANs - full-colour photos of faces
epochs = 12
features are
composed
better
GANs - full-colour photos of faces
Tutorial Code
http://makeyourownalgorithmicart.blogspot.com
Comparison with Published Works
https://github.com/NVlabs/stylegan
Comparison with Published Works
Key Points
varying input vector
Adversarial training is a cool
idea.
GANs can make plausible
data that isn’t a copy-paste
or average of the training
data.
GANs are new - we’re still
learning about how they
work and don’t work.
Mode collapse is the key
open research question!

Generative Adversarial Networks by Tariq Rashid