SlideShare a Scribd company logo
Image Generation with Tensorflow
Cenk Bircano˘glu
Boyner Group/Bah¸ce¸sehir Uni
cenk.bircanoglu@gmail.com
April 21, 2018
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 1 / 44
Overview
1 Convolutional Neural Networks
2 What are Generative Adverserial Networks?
3 Common GAN Architectures and Applications
4 Implementing GANs with Tensorflow
5 Question&Answer
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 2 / 44
Convolutional Neural Networks
Source: https://www.mathworks.com/discovery/convolutional-neural-network.html
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 3 / 44
Deceiving the CNN
Source: https://blog.openai.com/adversarial-example-research/
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 4 / 44
What are Generative Adverserial Networks?
Source: https://deeplearning4j.org/generative-adversarial-network
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 5 / 44
GAN Training
Source: Goodfellow, 20017
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 6 / 44
Generator
Source: http://arxiv.org/abs/1511.06434
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 7 / 44
Disriminator
Source: http://arxiv.org/abs/1511.06434
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 8 / 44
Common GAN Applications
Generating High-Quality
Images
Semi-supervised learning
Ensembles
Clustering
Image blending
Image Inpainting
Joint Probability
Super-Resolution
De-occlusion
Improving Classification &
Recognition
Semantic Segmentation
Object Detection
RNN-GANs
Conditional Adversarial Nets
Video Prediction & Generation
Texture Synthesis & Style
Transfer
Image Translation
GAN Theory
3-Dimensional GANs
Music Face Generation &
Editing
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 9 / 44
GAN Results
Source: https://kaonashi-tyc.github.io/2017/04/06/zi2zi.html, https://github.com/hanzhanggit/StackGAN,
https://arxiv.org/pdf/1708.05509.pdf, https://arxiv.org/pdf/1705.09368.pdf, https://github.com/david-gpu/srez,
http://research.nvidia.com/sites/default/files/pubs/2017-10 Progressive-Growing-of/karras2018iclr-paper.pdf,
https://github.com/Guim3/IcGAN
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 10 / 44
Generative Adversarial Networks - 2014
The first paper
Two-player game that the generator
is trained to generate images from
inputed noises to fool the
discriminator while the discriminator
is trained to well discriminate real
samples and fake samples
E real(log(D)) + E fake(log(1-D))
https://papers.nips.cc/paper/5423-generative-adversarial-nets.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 11 / 44
Conditional Generative Adversarial Nets - 2014
Source: http://guimperarnau.com/blog/2017/03/Fantastic-GANs-and-where-to-find-them
https://arxiv.org/pdf/1511.06434.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 12 / 44
cGAN Results
Source: https://arxiv.org/pdf/1411.1784.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 13 / 44
Unsupervised Representation Learning with Deep
Convolutional Generative Adversarial Networks - 2015
Source: https://arxiv.org/pdf/1511.06434.pdf
https://arxiv.org/pdf/1511.06434.pdfCenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 14 / 44
StackGAN: Text to Photo-realistic Image Synthesis with
Stacked Generative Adversarial Networks - 2016
Source: https://arxiv.org/pdf/1612.03242.pdf
https://arxiv.org/pdf/1612.03242.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 15 / 44
StackGAN Results
Source: https://arxiv.org/pdf/1612.03242.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 16 / 44
InfoGAN: Interpretable Representation Learning by
Information Maximizing Generative Adversarial Nets - 2016
Source: https://towardsdatascience.com/infogan-generative-adversarial-networks-part-iii-380c0c6712cd
https://arxiv.org/pdf/1606.03657.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 17 / 44
InfoGAN Results
Source: https://arxiv.org/pdf/1606.03657.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 18 / 44
Wasserstein GAN - 2017
Source: https://arxiv.org/pdf/1701.07875.pdf
https://arxiv.org/pdf/1701.07875.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 19 / 44
Improved Training of Wasserstein GANs - 2017
Source: https://arxiv.org/pdf/1704.00028.pdf
https://arxiv.org/pdf/1704.00028.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 20 / 44
WGAN-GP Results - 2017
Source: https://arxiv.org/pdf/1704.00028.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 21 / 44
BEGAN: Boundary Equilibrium Generative Adversarial
Networks - 2017
Source: https://arxiv.org/pdf/1703.10717.pdf
https://arxiv.org/pdf/1703.10717.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 22 / 44
BEGAN Results
Source: https://arxiv.org/pdf/1703.10717.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 23 / 44
Progressive Growing of GANs for Improved Quality,
Stability, and Variation - 2017
Source: https://arxiv.org/pdf/1710.10196.pdf
https://arxiv.org/pdf/1710.10196.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 24 / 44
ProGAN Results
Source: https://arxiv.org/pdf/1710.10196.pdf
https://arxiv.org/pdf/1710.10196.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 25 / 44
Unpaired Image-to-Image Translation using
Cycle-Consistent Adversarial Networks - 2017
Source: https://arxiv.org/pdf/1703.10593.pdf
https://arxiv.org/pdf/1703.10593.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 26 / 44
CycleGAN Results
Source: https://arxiv.org/pdf/1703.10593.pdf
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 27 / 44
Implementing GANs with Tensorflow
Generator Network
Discriminator Network
Initialize Graph
Loss, Optimizer, Weights
Training
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 28 / 44
Discriminator in Tensorflow
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 29 / 44
First Convolutional Layer in Discriminator
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 30 / 44
Second Convolutional Layer in Discriminator
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 31 / 44
First Fully Connected Layer in Discriminator
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 32 / 44
Second Fully Connected Layer in Discriminator
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 33 / 44
Generator in Tensorflow
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 34 / 44
First Convolutional Layer in Generator
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 35 / 44
Second Convolutional Layer in Generator
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 36 / 44
Third Convolutional Layer in Generator
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 37 / 44
Fourth Convolutional Layer in Generator
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 38 / 44
Initialize Graph
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 39 / 44
Loss, Optimizer, Weights in Tensorflow
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 40 / 44
Training
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 41 / 44
Results
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 42 / 44
GAN Training Tips & Tricks
Normalize the inputs
A modified loss function
Use a spherical Z
BatchNorm
Avoid Sparse Gradients:
ReLU, MaxPool
Use Soft and Noisy Labels
DCGAN / Hybrid Models
Use stability tricks from RL
Use the ADAM Optimizer
Track failures early
Dont balance loss via statistics
If you have labels, use them
Add noise to inputs, decay over
time
Train discriminator more
Batch Discrimination
Discrete variables in Conditional
GANs
Use Dropouts in G in both train
and test phase
https://github.com/soumith/ganhacks
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 43 / 44
Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 44 / 44

More Related Content

PPTX
Yapay Sinir Ağlarında Aktivasyon Fonksiyonlarının Karşılaştırılması
PPTX
Kaggles House Prices Competition Study
PDF
Routing or Computing? The Paradigm Shift Towards Intelligent Computer Network...
PDF
Facial Emotion Classification Using Deep Embedding with Triplet Loss Function
PDF
Recommendation Systems
PDF
A Comparison of Loss Function on Deep Embedding
PPTX
Autoencoders for image_classification
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing
Yapay Sinir Ağlarında Aktivasyon Fonksiyonlarının Karşılaştırılması
Kaggles House Prices Competition Study
Routing or Computing? The Paradigm Shift Towards Intelligent Computer Network...
Facial Emotion Classification Using Deep Embedding with Triplet Loss Function
Recommendation Systems
A Comparison of Loss Function on Deep Embedding
Autoencoders for image_classification
2024 Trend Updates: What Really Works In SEO & Content Marketing

Recently uploaded (20)

PPTX
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
PPTX
SAP 2 completion done . PRESENTATION.pptx
PPTX
IMPACT OF LANDSLIDE.....................
PDF
[EN] Industrial Machine Downtime Prediction
PDF
Navigating the Thai Supplements Landscape.pdf
PPTX
Topic 5 Presentation 5 Lesson 5 Corporate Fin
PPTX
Managing Community Partner Relationships
DOCX
Factor Analysis Word Document Presentation
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PPTX
A Complete Guide to Streamlining Business Processes
PPTX
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PDF
Introduction to the R Programming Language
PDF
Votre score augmente si vous choisissez une catégorie et que vous rédigez une...
PDF
Introduction to Data Science and Data Analysis
PPT
ISS -ESG Data flows What is ESG and HowHow
PPTX
sac 451hinhgsgshssjsjsjheegdggeegegdggddgeg.pptx
PDF
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
PDF
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
PPT
lectureusjsjdhdsjjshdshshddhdhddhhd1.ppt
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
SAP 2 completion done . PRESENTATION.pptx
IMPACT OF LANDSLIDE.....................
[EN] Industrial Machine Downtime Prediction
Navigating the Thai Supplements Landscape.pdf
Topic 5 Presentation 5 Lesson 5 Corporate Fin
Managing Community Partner Relationships
Factor Analysis Word Document Presentation
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
A Complete Guide to Streamlining Business Processes
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Introduction to the R Programming Language
Votre score augmente si vous choisissez une catégorie et que vous rédigez une...
Introduction to Data Science and Data Analysis
ISS -ESG Data flows What is ESG and HowHow
sac 451hinhgsgshssjsjsjheegdggeegegdggddgeg.pptx
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
lectureusjsjdhdsjjshdshshddhdhddhhd1.ppt
Ad
Ad

Image Generation with Tensorflow

  • 1. Image Generation with Tensorflow Cenk Bircano˘glu Boyner Group/Bah¸ce¸sehir Uni cenk.bircanoglu@gmail.com April 21, 2018 Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 1 / 44
  • 2. Overview 1 Convolutional Neural Networks 2 What are Generative Adverserial Networks? 3 Common GAN Architectures and Applications 4 Implementing GANs with Tensorflow 5 Question&Answer Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 2 / 44
  • 3. Convolutional Neural Networks Source: https://www.mathworks.com/discovery/convolutional-neural-network.html Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 3 / 44
  • 4. Deceiving the CNN Source: https://blog.openai.com/adversarial-example-research/ Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 4 / 44
  • 5. What are Generative Adverserial Networks? Source: https://deeplearning4j.org/generative-adversarial-network Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 5 / 44
  • 6. GAN Training Source: Goodfellow, 20017 Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 6 / 44
  • 7. Generator Source: http://arxiv.org/abs/1511.06434 Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 7 / 44
  • 8. Disriminator Source: http://arxiv.org/abs/1511.06434 Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 8 / 44
  • 9. Common GAN Applications Generating High-Quality Images Semi-supervised learning Ensembles Clustering Image blending Image Inpainting Joint Probability Super-Resolution De-occlusion Improving Classification & Recognition Semantic Segmentation Object Detection RNN-GANs Conditional Adversarial Nets Video Prediction & Generation Texture Synthesis & Style Transfer Image Translation GAN Theory 3-Dimensional GANs Music Face Generation & Editing Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 9 / 44
  • 10. GAN Results Source: https://kaonashi-tyc.github.io/2017/04/06/zi2zi.html, https://github.com/hanzhanggit/StackGAN, https://arxiv.org/pdf/1708.05509.pdf, https://arxiv.org/pdf/1705.09368.pdf, https://github.com/david-gpu/srez, http://research.nvidia.com/sites/default/files/pubs/2017-10 Progressive-Growing-of/karras2018iclr-paper.pdf, https://github.com/Guim3/IcGAN Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 10 / 44
  • 11. Generative Adversarial Networks - 2014 The first paper Two-player game that the generator is trained to generate images from inputed noises to fool the discriminator while the discriminator is trained to well discriminate real samples and fake samples E real(log(D)) + E fake(log(1-D)) https://papers.nips.cc/paper/5423-generative-adversarial-nets.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 11 / 44
  • 12. Conditional Generative Adversarial Nets - 2014 Source: http://guimperarnau.com/blog/2017/03/Fantastic-GANs-and-where-to-find-them https://arxiv.org/pdf/1511.06434.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 12 / 44
  • 13. cGAN Results Source: https://arxiv.org/pdf/1411.1784.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 13 / 44
  • 14. Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks - 2015 Source: https://arxiv.org/pdf/1511.06434.pdf https://arxiv.org/pdf/1511.06434.pdfCenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 14 / 44
  • 15. StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks - 2016 Source: https://arxiv.org/pdf/1612.03242.pdf https://arxiv.org/pdf/1612.03242.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 15 / 44
  • 16. StackGAN Results Source: https://arxiv.org/pdf/1612.03242.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 16 / 44
  • 17. InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets - 2016 Source: https://towardsdatascience.com/infogan-generative-adversarial-networks-part-iii-380c0c6712cd https://arxiv.org/pdf/1606.03657.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 17 / 44
  • 18. InfoGAN Results Source: https://arxiv.org/pdf/1606.03657.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 18 / 44
  • 19. Wasserstein GAN - 2017 Source: https://arxiv.org/pdf/1701.07875.pdf https://arxiv.org/pdf/1701.07875.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 19 / 44
  • 20. Improved Training of Wasserstein GANs - 2017 Source: https://arxiv.org/pdf/1704.00028.pdf https://arxiv.org/pdf/1704.00028.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 20 / 44
  • 21. WGAN-GP Results - 2017 Source: https://arxiv.org/pdf/1704.00028.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 21 / 44
  • 22. BEGAN: Boundary Equilibrium Generative Adversarial Networks - 2017 Source: https://arxiv.org/pdf/1703.10717.pdf https://arxiv.org/pdf/1703.10717.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 22 / 44
  • 23. BEGAN Results Source: https://arxiv.org/pdf/1703.10717.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 23 / 44
  • 24. Progressive Growing of GANs for Improved Quality, Stability, and Variation - 2017 Source: https://arxiv.org/pdf/1710.10196.pdf https://arxiv.org/pdf/1710.10196.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 24 / 44
  • 26. Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networks - 2017 Source: https://arxiv.org/pdf/1703.10593.pdf https://arxiv.org/pdf/1703.10593.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 26 / 44
  • 27. CycleGAN Results Source: https://arxiv.org/pdf/1703.10593.pdf Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 27 / 44
  • 28. Implementing GANs with Tensorflow Generator Network Discriminator Network Initialize Graph Loss, Optimizer, Weights Training Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 28 / 44
  • 29. Discriminator in Tensorflow Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 29 / 44
  • 30. First Convolutional Layer in Discriminator Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 30 / 44
  • 31. Second Convolutional Layer in Discriminator Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 31 / 44
  • 32. First Fully Connected Layer in Discriminator Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 32 / 44
  • 33. Second Fully Connected Layer in Discriminator Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 33 / 44
  • 34. Generator in Tensorflow Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 34 / 44
  • 35. First Convolutional Layer in Generator Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 35 / 44
  • 36. Second Convolutional Layer in Generator Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 36 / 44
  • 37. Third Convolutional Layer in Generator Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 37 / 44
  • 38. Fourth Convolutional Layer in Generator Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 38 / 44
  • 39. Initialize Graph Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 39 / 44
  • 40. Loss, Optimizer, Weights in Tensorflow Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 40 / 44
  • 41. Training Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 41 / 44
  • 42. Results Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 42 / 44
  • 43. GAN Training Tips & Tricks Normalize the inputs A modified loss function Use a spherical Z BatchNorm Avoid Sparse Gradients: ReLU, MaxPool Use Soft and Noisy Labels DCGAN / Hybrid Models Use stability tricks from RL Use the ADAM Optimizer Track failures early Dont balance loss via statistics If you have labels, use them Add noise to inputs, decay over time Train discriminator more Batch Discrimination Discrete variables in Conditional GANs Use Dropouts in G in both train and test phase https://github.com/soumith/ganhacks Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 43 / 44
  • 44. Cenk Bircano˘glu (Boyner Group/Bah¸ce¸sehir Uni) GANs April 21, 2018 44 / 44