SlideShare a Scribd company logo
Generative Models
Part 2: Super Resolution
By Sam Witteveen
Neural Network
Hidden Layers
Loss Function
Desired
Result
Optimize
Input
Often Labels
Output
Neural Network Inference
Hidden Layers
Raw
Input
Output
No More Loss or Optimize
No More Labels
Classification CNN
Conv Blocks(Conv+Pooling) Relu
Reduction of HxW
increased number of filters(K)
FCN layers
Prediction
The Magic of CNNs
• CNNs are not just for classification
• Don’t fall into the trap of thinking CNNs are just a
precursor to a set of dense layers, logits and
classes
• CNNs give us rich feature representations of what
we put into them, if we cut off the dense layers and
we use convolution blocks as our outputs
Old Style CNN
Reduction of HxW
increase of Filters
Output
All these reduce theConv Block 3x3
Dense Layer
Logits
Dense Layer
Dense Layers
Input
Max PoolingConv Block
Conv Block
Conv Block
Softmax Layer
Modified CNN
Reduction of HxW
increased number of filters
Output
Conv Block 3x3
Input
Conv Block
Conv Block
Conv Block
very deep (k) output
eg. lots of filters
The paper
"Perceptual Losses for Real-Time Style Transfer and Super-Resolution" by Johnson et.al
http://arxiv.org/abs/1603.08155
The SR Network
VGG2
Loss
UpSampling 4x-8x
VGG1
LowRes
input
Optimize
NonTrainable
NormalRes
input
NonTrainable
SR Net
Perceptual Loss
The SR Network
VGG2
Loss
UpSampling 4x-8x
VGG1
LowRes
input
Optimize
NonTrainable
NormalRes
input
NonTrainable
SR Net
Perceptual Loss
The Loss Part
Perceptual Loss
MSE
ConvNet
for original Image
Output Features not prediction
Perceptual Loss
ConvNet
for Up Sampled Image
Output Features not prediction
Up Sampling CNN
Reduction of HxW
increase of Filters
Output
Increase Receptive fieldConv Block 1x1
UpSample Block
ResNet Block
ResNet Block
ResNet Block
ResNet Block
Conv with tanh
activation
UpSample Block
Increasing Pixels
LowRes Input
What are these pixels?
Done at smaller image size
Receptive Field
3x3 filter on 3x3 input give 5x5 receptive field
Conv Block
input
Conv2D
Batch
Norm
ReLU
ResNet Block
Identity
input
Conv
Block
Conv
Block
Sum
The SR Network
VGG2
Loss
UpSampling 4x-8x
VGG1
LowRes
input
Optimize
NonTrainable
NormalRes
input
NonTrainable
SR Net
Perceptual Loss
The Loss Part
Code Walk through
CNN between anything?
Output
Trainable
input CNN
Colorization
Segmentation
Others
• Depth Perception
• De-noising
• Visual Filters
• Audio Clarity
• Audio Filters
Summary
• Generative models go far beyond just artist models
• The power of CNN beyond classification
• Perceptual Loss from comparing 2 CNNs
• Generative = image in -> image out
• Try putting a CNN between some data to
manipulate it to get what you want
The End
Contact
email: s@maclea.ai
twitter: sam_witteveen
https://github.com/samwit/TensorFlowTalks

More Related Content

PPTX
Pn sequence
PDF
An introduction to super resolution using deep learning
PDF
Convolutional Neural Networks (CNN)
PDF
Convolutional Neural Networks: Part 1
PPTX
Computer vision-nit-silchar-hackathon
PPTX
Dssg talk CNN intro
PPTX
conv_nets.pptx
Pn sequence
An introduction to super resolution using deep learning
Convolutional Neural Networks (CNN)
Convolutional Neural Networks: Part 1
Computer vision-nit-silchar-hackathon
Dssg talk CNN intro
conv_nets.pptx

Similar to Tensor flow03 generativemodels part2 8x super resolution (20)

PPTX
Unit-5.pptx notes for artificial intelligence
PPT
digital image processing - convolutional networks
PDF
dfdshofdifhdifhdfhgfoighfgofgfgfgfgdfdfdfdf
PPTX
intro-to-cnn-April_2020.pptx
PPTX
build a Convolutional Neural Network (CNN) using TensorFlow in Python
PPTX
Convolutional Neural Networks
PDF
CNN Basics.pdf
PPTX
CM20315_10_Convolutional neural networkArchitecture
PDF
Build computer vision models to perform object detection and classification w...
PDF
AICamp - Dr Ramine Tinati - Making Computer Vision Real
PPTX
Convolutional Neural Network - Computer Vision.pptx
PPTX
A Survey of Convolutional Neural Networks
PPTX
[Revised] Intro to CNN
PPTX
Introduction_to_Deep_learning_Standford_university by Angelica Sun
PPTX
Convolutional Neural Network (CNN)of Deep Learning
PDF
convolutional_neural_networks in deep learning
PDF
Classification case study + intro to cnn
PDF
DL.pdf
PPTX
Convolutional Neural Network and Its Applications
PDF
Practical Deep Learning Using Tensor Flow - Sandeep Kath
Unit-5.pptx notes for artificial intelligence
digital image processing - convolutional networks
dfdshofdifhdifhdfhgfoighfgofgfgfgfgdfdfdfdf
intro-to-cnn-April_2020.pptx
build a Convolutional Neural Network (CNN) using TensorFlow in Python
Convolutional Neural Networks
CNN Basics.pdf
CM20315_10_Convolutional neural networkArchitecture
Build computer vision models to perform object detection and classification w...
AICamp - Dr Ramine Tinati - Making Computer Vision Real
Convolutional Neural Network - Computer Vision.pptx
A Survey of Convolutional Neural Networks
[Revised] Intro to CNN
Introduction_to_Deep_learning_Standford_university by Angelica Sun
Convolutional Neural Network (CNN)of Deep Learning
convolutional_neural_networks in deep learning
Classification case study + intro to cnn
DL.pdf
Convolutional Neural Network and Its Applications
Practical Deep Learning Using Tensor Flow - Sandeep Kath
Ad

More from Sam Witteveen (8)

PDF
PyTorch 04 What's New in PyTorch Land
PDF
Tensor flow 06 tips and tricks
PDF
Tensor flow05 neural-machine-translation-seq2seq
PDF
Tensor flow intro and summit info feb 2017
PDF
Conversational agents
PDF
Traction
PDF
Product development
KEY
Hr Summit Biz Genius Presentation
PyTorch 04 What's New in PyTorch Land
Tensor flow 06 tips and tricks
Tensor flow05 neural-machine-translation-seq2seq
Tensor flow intro and summit info feb 2017
Conversational agents
Traction
Product development
Hr Summit Biz Genius Presentation
Ad

Recently uploaded (20)

PPTX
Sustainable Sites - Green Building Construction
PPT
Project quality management in manufacturing
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
composite construction of structures.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
UNIT 4 Total Quality Management .pptx
PDF
PPT on Performance Review to get promotions
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Digital Logic Computer Design lecture notes
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPT
Mechanical Engineering MATERIALS Selection
Sustainable Sites - Green Building Construction
Project quality management in manufacturing
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
bas. eng. economics group 4 presentation 1.pptx
composite construction of structures.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
OOP with Java - Java Introduction (Basics)
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
additive manufacturing of ss316l using mig welding
UNIT 4 Total Quality Management .pptx
PPT on Performance Review to get promotions
Internet of Things (IOT) - A guide to understanding
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Digital Logic Computer Design lecture notes
Automation-in-Manufacturing-Chapter-Introduction.pdf
Mechanical Engineering MATERIALS Selection

Tensor flow03 generativemodels part2 8x super resolution