Computational Photography
Si Lu
Spring 2018
http://web.cecs.pdx.edu/~lusi/CS510/CS510_Computati
- nal_Photography.htm
05/29/2018
Computational Photography Si Lu Spring 2018 - - PowerPoint PPT Presentation
Computational Photography Si Lu Spring 2018 http://web.cecs.pdx.edu/~lusi/CS510/CS510_Computati onal_Photography.htm 05/29/2018 Last Time o 3D Video Stabilization 2 Introduction of Neural Networks 3 Content Introduction
Si Lu
Spring 2018
http://web.cecs.pdx.edu/~lusi/CS510/CS510_Computati
05/29/2018
Last Time
2
3
Content
4
Content
5
Artificial vs. Biological Neural Nets
http://7xiur2.com1.z0.glb.clouddn.com/0137.png
7
https://cdn-images-1.medium.com/max/1600/1*xR4m0oOKz_jRgQU4Oge53g.jpeg
8
https://cdn-images-1.medium.com/max/1600/1*xR4m0oOKz_jRgQU4Oge53g.jpeg
9
https://cdn-images-1.medium.com/max/1600/1*xR4m0oOKz_jRgQU4Oge53g.jpeg https://www.robotics.org/
10
https://cdn-images-1.medium.com/max/1600/1*xR4m0oOKz_jRgQU4Oge53g.jpeg https://www.geekwire.com
11
Artificial = Biological ? 90 Billion Neuron
Artificial = Biological ?
Artificial = Biological ?
Artificial = Biological ?
Artificial = Biological ?
Artificial = Biological ?
Artificial = Biological ?
Artificial = Biological ?
Artificial = Biological ?
Artificial = Biological ?
Artificial = Biological ?
Artificial = Biological ?
Artificial = Biological ?
Content
24
What are Neural Networks?
https://i.imgur.com/Vbsk7t5.jpgWhat are Neural Networks?
Neural network, or artificial neural network, is a computing system inspired by the biological neural networks that constitute animal brains
wikipedia
What are Neural Networks?
wikipedia
What are Neural Networks?
wikipedia
Input Hidden layer 1 Hidden layer 2 Output
What are Neural Networks?
What are Neural Networks?
What are Neural Networks?
What are Neural Networks?
Trainging dataset Ground truth labels
What are Neural Networks?
What are Neural Networks?
What are Neural Networks?
What are Neural Networks?
Error
What are Neural Networks?
Error
What are Neural Networks?
Repeat millions of times
What are Neural Networks?
What are Neural Networks?
Content
41
Neural Network Basics
https://futureoflife.orgContent
43
What is in the black box ?
What is in the black box ?
What is in the black box ?
What is in the black box ?
What is in the black box ?
What is in the black box ?
Neural networks are trained to extract higher and higher levels of abstract features to better represent the dataset via back-propogation
What is in the black box ?
w1 w2 w3 x1 x2 x3 y
Basic Unit: Neuron
input parameters
What is in the black box ?
w1 w2 w3 x1 x2 x3 y
y = w1x1+w2x2+w3x3
input parameters
What is in the black box ?
w1 w2 w3 x1 x2 x3 y
y = WxT
input parameters
Content
53
Gradient Descent Method
w1 w2 w3 x1 x2 x3 y
y = WxT
input parameters
Gradient Descent Method
Gradient Descent Method
Wopt = argminW|y-WxT|2
Gradient Descent Method
Wopt = argminW|y-WxT|2
loss
Gradient Descent Method
Optimization: Gradient Descent
Gradient Descent Method
Simplification
Original loss function: f=|y-WxT|2
Gradient Descent Method
Simplification
Original loss function: f=|y-WxT|2 Simplify 1: single w/x/y: f=(y-wx)2
Gradient Descent Method
Simplification
Original loss function: f=|y-WxT|2 Simplify 1: single w/x/y: f=(y-wx)2 Simplify 2: y=0, x=1: f=w2
Gradient Descent Method
f w
Gradient Descent Method
f w
Gradient Descent Method
f w
Gradient Descent Method
Gradient Descent Method
Gradient Descent Method
f w
Content
68
Speed up Training: dataset
Large numbe of x, y, w
y = WxT
Speed up Training: dataset
Speed up Training: dataset
Batch
Speed up Training: dataset
Batch
Speed up Training: dataset
Batch
Stochastic Gradient Descent (SGD)
Speed up Training: optimizer
Original: W += - LR * dx
Speed up Training: optimizer
Original: W += - LR * dx m += b1*m- LR * dx W += m Momentum: Adding “dowhill”- inertia
Speed up Training: optimizer
Original: W += - LR * dx v += dx^2 W += -LR * dx/sqrt(v) AdaGrad: Adding “breaking shoes”- resistance
Speed up Training: optimizer
Momentum + AdaGrad
Content
78
Activation Function
w1 w2 w3 x1 x2 x3 y
y = WxT
input parameters
https://medium.com/@shrutijadon10104776
Activation Function
Activation Function
Activate different neurons for different input
Activation Function
Activate different neurons for different input
Activation Function
Essentially: adding non-linearty
Team Salary Championship
Activation Function
Essentially: adding non-linearty
Team Salary Team Salary Championship Championship
Next Time
86