SlideShare a Scribd company logo
1 of 44
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

Recently uploaded

knowledge representation in artificial intelligence
knowledge representation in artificial intelligenceknowledge representation in artificial intelligence
knowledge representation in artificial intelligencePriyadharshiniG41
 
World Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdf
World Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdfWorld Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdf
World Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdfsimulationsindia
 
Decoding Patterns: Customer Churn Prediction Data Analysis Project
Decoding Patterns: Customer Churn Prediction Data Analysis ProjectDecoding Patterns: Customer Churn Prediction Data Analysis Project
Decoding Patterns: Customer Churn Prediction Data Analysis ProjectBoston Institute of Analytics
 
Digital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksDigital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksdeepakthakur548787
 
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...Dr Arash Najmaei ( Phd., MBA, BSc)
 
Digital Indonesia Report 2024 by We Are Social .pdf
Digital Indonesia Report 2024 by We Are Social .pdfDigital Indonesia Report 2024 by We Are Social .pdf
Digital Indonesia Report 2024 by We Are Social .pdfNicoChristianSunaryo
 
Statistics For Management by Richard I. Levin 8ed.pdf
Statistics For Management by Richard I. Levin 8ed.pdfStatistics For Management by Richard I. Levin 8ed.pdf
Statistics For Management by Richard I. Levin 8ed.pdfnikeshsingh56
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxaleedritatuxx
 
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024Susanna-Assunta Sansone
 
DATA ANALYSIS using various data sets like shoping data set etc
DATA ANALYSIS using various data sets like shoping data set etcDATA ANALYSIS using various data sets like shoping data set etc
DATA ANALYSIS using various data sets like shoping data set etclalithasri22
 
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis model
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis modelDecoding Movie Sentiments: Analyzing Reviews with Data Analysis model
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis modelBoston Institute of Analytics
 
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfEnglish-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfblazblazml
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Boston Institute of Analytics
 
Principles and Practices of Data Visualization
Principles and Practices of Data VisualizationPrinciples and Practices of Data Visualization
Principles and Practices of Data VisualizationKianJazayeri1
 
Non Text Magic Studio Magic Design for Presentations L&P.pdf
Non Text Magic Studio Magic Design for Presentations L&P.pdfNon Text Magic Studio Magic Design for Presentations L&P.pdf
Non Text Magic Studio Magic Design for Presentations L&P.pdfPratikPatil591646
 
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Boston Institute of Analytics
 
Role of Consumer Insights in business transformation
Role of Consumer Insights in business transformationRole of Consumer Insights in business transformation
Role of Consumer Insights in business transformationAnnie Melnic
 

Recently uploaded (20)

knowledge representation in artificial intelligence
knowledge representation in artificial intelligenceknowledge representation in artificial intelligence
knowledge representation in artificial intelligence
 
World Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdf
World Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdfWorld Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdf
World Economic Forum Metaverse Ecosystem By Utpal Chakraborty.pdf
 
Decoding Patterns: Customer Churn Prediction Data Analysis Project
Decoding Patterns: Customer Churn Prediction Data Analysis ProjectDecoding Patterns: Customer Churn Prediction Data Analysis Project
Decoding Patterns: Customer Churn Prediction Data Analysis Project
 
Digital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksDigital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing works
 
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
 
Digital Indonesia Report 2024 by We Are Social .pdf
Digital Indonesia Report 2024 by We Are Social .pdfDigital Indonesia Report 2024 by We Are Social .pdf
Digital Indonesia Report 2024 by We Are Social .pdf
 
Statistics For Management by Richard I. Levin 8ed.pdf
Statistics For Management by Richard I. Levin 8ed.pdfStatistics For Management by Richard I. Levin 8ed.pdf
Statistics For Management by Richard I. Levin 8ed.pdf
 
Data Analysis Project: Stroke Prediction
Data Analysis Project: Stroke PredictionData Analysis Project: Stroke Prediction
Data Analysis Project: Stroke Prediction
 
Insurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis ProjectInsurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis Project
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
 
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
 
DATA ANALYSIS using various data sets like shoping data set etc
DATA ANALYSIS using various data sets like shoping data set etcDATA ANALYSIS using various data sets like shoping data set etc
DATA ANALYSIS using various data sets like shoping data set etc
 
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis model
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis modelDecoding Movie Sentiments: Analyzing Reviews with Data Analysis model
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis model
 
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfEnglish-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
 
Principles and Practices of Data Visualization
Principles and Practices of Data VisualizationPrinciples and Practices of Data Visualization
Principles and Practices of Data Visualization
 
2023 Survey Shows Dip in High School E-Cigarette Use
2023 Survey Shows Dip in High School E-Cigarette Use2023 Survey Shows Dip in High School E-Cigarette Use
2023 Survey Shows Dip in High School E-Cigarette Use
 
Non Text Magic Studio Magic Design for Presentations L&P.pdf
Non Text Magic Studio Magic Design for Presentations L&P.pdfNon Text Magic Studio Magic Design for Presentations L&P.pdf
Non Text Magic Studio Magic Design for Presentations L&P.pdf
 
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
 
Role of Consumer Insights in business transformation
Role of Consumer Insights in business transformationRole of Consumer Insights in business transformation
Role of Consumer Insights in business transformation
 

Featured

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 

Featured (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

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
  • 25. 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
  • 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