Docsity

Computer Vision Fundamentals: Lecture 4 - Deep Learning and Convolutional Neural Networks, Schemes and Mind Maps of Engineering

Partial preview of the text

Download Computer Vision Fundamentals: Lecture 4 - Deep Learning and Convolutional Neural Networks and more Schemes and Mind Maps Engineering in PDF only on Docsity!

CS 436 / CS 5310 / EE

Computer Vision Fundamentals

Murtaza Taj

[email protected]

Lecture 4: Deep Learning - Part 1

Wed 14th^ Sep 2022

Neural Networks

AND Function

x

2

x

1 x 1 x 2 AND( x 1 ,^ x 2 ) -1 -1 - -1 1 - 1 -1 - 1 1 1 -1 + x 1 + x 2 = 0 x 1 x 2 AND Function (āˆ’ 1 Ɨ 1 ) + (āˆ’ 1 Ɨ 1 ) āˆ’ 1 < 0 → āˆ’ 1 (āˆ’ 1 Ɨ 1 ) + ( 1 Ɨ 1 ) āˆ’ 1 < 0 → āˆ’ 1 ( 1 Ɨ 1 ) + (āˆ’ 1 Ɨ 1 ) āˆ’ 1 < 0 → āˆ’ 1 ( 1 Ɨ 1 ) + ( 1 Ɨ 1 ) āˆ’ 1 > 0 → 1 AND Function

x 2

x 1

x 1 x 2 AND( x 1 , -1 -1 - -1 1 - 1 -1 - 1 1 1 -1 + x 1 + x 2 = 0

w = { w 0 , w 1 , w 2 , ⋯}

T

T

x = {1, x 1 , x 2 , ⋯}

T y = w T x y = w T x

Convolution via Neural Networks

Convolution Operation https://grzegorzgwardys.wordpress.com/2016/04/22/8/ y 11 = w 11 x 11 + w 12 x 12 + w 21 x 21 + w 22 x 22 y 12 = w 11 x 12 + w 12 x 13 + w 21 x 22 + w 22 x 23 y 21 = w 11 x 21 + w 12 x 22 + w 21 x 31 + w 22 x 32 y 22 = w 11 x 22 + w 12 x 23 + w 21 x 32 + w 22 x 33 w x y 11 y 12 y 21 y 22 x 11 x 12 x 13 x 21 x 22 x 23 x 31 x 32 x 33 w 11 w 12 w 21 w 22

Feedforward in CNN is identical with convolution operation

https://grzegorzgwardys.wordpress.com/2016/04/22/8/

x

11

x

12

x

13

x

21

x

22

x

23

x

31

x

32

x

33

y

11

y

12

y

21

y

22 w x y 11 y 12 y 21 y 22 x 11 x 12 x 13 x 21 x 22 x 23 x 31 x 32 x 33 w 11 w 12 w 21 w 22 y 11 = w 11 x 11 + w 12 x 12 + w 21 x 21 + w 22 x 22 y 12 = w 11 x 12 + w 12 x 13 + w 21 x 22 + w 22 x 23 y 21 = w 11 x 21 + w 12 x 22 + w 21 x 31 + w 22 x 32 y 22 = w 11 x 22 + w 12 x 23 + w 21 x 32 + w 22 x 33

Transforming Multilayer Perceptron to CNN https://grzegorzgwardys.wordpress.com/2016/04/22/8/

More Details

! Linear Regression

! https://youtu.be/EI6GES6q3wo

! Gradient Descent & Neural Network

! https://youtu.be/nE3FWsBU3Gs

! Multi-layer Neural Network Backpropagation

! https://youtu.be/827Pg9fn_1o

Convolutional Neural Network

! Le Cun 1998

Recap - Convolution - Numerical Example Image Filter Conv Output 1 9 7 3 6 9 1 0 - 8 3 0 6 0 6 1 0 -1 -3 -3 -2 - 1 0 6 6 9 9 1 0 -1 2 -13 1 0 4 4 5 8 1 5 -4 -12 1 6 3 5 1 7 1 1 Ignoring flip 2 -14 2 17 3 1 2 9 4 1

Recap - Convolution - Smoothing Filter Image Filter Conv Output 128 128 128 52 52 52 1 1 1 128 128 128 52 52 52 1 1 1 x1/9 128 103 77 52 128 128 128 52 52 52 1 1 1 103 94 86 77 52 52 52 128 128 128 77 86 94 103 52 52 52 128 128 128 Ignoring flip 52 77 103 128 52 52 52 128 128 128