Introduction To Convolutional Neural Networks (CNNS)
Introduction To Convolutional Neural Networks (CNNS)
Introduction To Convolutional Neural Networks (CNNS)
– CONVOLUTIONAL
NEURAL NETWORK
Introduction to Computer Vision
(or)
- Wikipedia
2
What is CNN(Convolution Neural Network)
• Output:
Produces
feature maps
indicating
detected
features.
Architecture of CNN
6
Convolution Layer
Images source:
Analytics Vidhya
7
Padding in CNN
• Zero Padding: Adds zeros
around the input image to
preserve dimensions.
● The weight of a matrix moves 1 pixel at a time is called as stride 1 (as we did in above
case).
9
Images source: Analytics
• As we can see in above image the increase in the
stride value decreases the size of the image (which
may cause in losing the features of the image).
10
Images source: Analytics
• when the input of 6x6 is padded around with zeros we get the output with same
dimensions of 6x6 this is known as ‘Same Padding’.
● The middle 4x4 pixel remains the same, here we have retained the more information from
borders and also preserved the size of image.
● Based on the problems, we have the different CNN’s which are used in
computer vision.
● The five major computer vision techniques which can be addressed using
CNN.
■ Image Classification
■ Object Detection
■ Object Tracking
■ Semantic Segmentation
■ Instance Segmentation
16
Types of CNN
Image Classification:
■ LeNet (1998)
■ AlexNet (2012)
■ ZFNet (2013)
■ GoogLeNet19 (2014)
■ VGGNet 16 (2014)
■ ResNet(2015) 17
LeNet-5 Architecture
• Designed for handwritten
digit recognition (MNIST
dataset).
• Structure: 2 convolutional
layers, 2 subsampling layers,
2 fully connected layers.
• Structure: 5 convolutional
layers, 3 fully connected layers.
■ Automotive
■ Healthcare
■ Banking
■ Agriculture
■ Industrial 26
Conclusion
• CNNs have revolutionized computer vision tasks.