Deep Learning (MODULE-3)
Deep Learning (MODULE-3)
DEEP LEARNING
Module:3
Module:3
CONVOLUTION NEURAL NETWORKS
1. Foundations of Convolutional Neural Networks
–
2. CNN operations –
3. Architecture –
4. Simple Convolution Network –
5. Deep Convolutional Models –
(i) ResNet,
(ii) AlexNet,
(iii) InceptionNet and
1:) CONVOLUTION NEURAL NETWORKS
Foundations of Convolutional Neural Networks
Convolutional Neural Networks are a
special type of feed-forward artificial
neural network in which the connectivity
pattern between its neuron is inspired by
the visual cortex.
1:) CONVOLUTION NEURAL NETWORKS
Why Convolutional Neural Networks?
1:) CONVOLUTION NEURAL NETWORKS
Why Convolutional Neural Networks?
1:) CONVOLUTION NEURAL NETWORKS
Why Convolutional Neural Networks?
1:) CONVOLUTION NEURAL NETWORKS
Foundations of Convolutional Neural Networks
1:) CONVOLUTION NEURAL NETWORKS
Foundations of Convolutional Neural Networks
The Convolutional Neural Networks, which
are also called as covnets, are nothing but
neural networks, sharing their parameters.
Suppose that there is an image, which is
embodied as a cuboid, such that it encompasses
length, width, and height.
Here the dimensions of the image are
represented by the Red, Green, and Blue
channels.
1:) CONVOLUTION NEURAL NETWORKS
Foundations of Convolutional Neural Networks
1:) CONVOLUTION NEURAL NETWORKS
Key components of a Convolutional Neural
Network
1:) CONVOLUTION NEURAL NETWORKS
Key components of a Convolutional Neural
Network
1:) CONVOLUTION NEURAL NETWORKS
1:) CONVOLUTION NEURAL NETWORKS
1:) CONVOLUTION NEURAL NETWORKS
1:) CONVOLUTION NEURAL NETWORKS
CNN Operations:
1:) CONVOLUTION NEURAL NETWORKS
CNN Operations:
1:) CONVOLUTION NEURAL NETWORKS
CNN Operations:
1:) CONVOLUTION NEURAL NETWORKS
CNN Operations:
1:) CONVOLUTION NEURAL NETWORKS
CNN Operations:
1:) CONVOLUTION NEURAL NETWORKS
CNN Operations:
1:) CONVOLUTION NEURAL NETWORKS
CNN Operations:
1:) CONVOLUTION NEURAL NETWORKS
CNN Operations:
Filters:
are nothing but the Feature Detectors.
1:) CONVOLUTION NEURAL NETWORKS
CNN Operations:
1:) CONVOLUTION NEURAL NETWORKS
CNN Operations:
1:) CONVOLUTION NEURAL NETWORKS
CNN Operations:
1:) CONVOLUTION NEURAL NETWORKS
CNN Operations:
1:) CONVOLUTION NEURAL NETWORKS
Why Convolutional Neural Networks?
1:) CONVOLUTION NEURAL NETWORKS
Why Convolutional Neural Networks?
Flattening:
1:) CONVOLUTION NEURAL NETWORKS
Fully Connected Layer:
These layers are in the last layer of the convolutional neural
network, and their inputs correspond to the flattened one-
dimensional matrix generated by the last pooling layer. ReLU
activations functions are applied to them for non-linearity.
1:) CONVOLUTION NEURAL NETWORKS
Fully Connected Layer:
1:) CONVOLUTION NEURAL NETWORKS
1:) CONVOLUTION NEURAL NETWORKS
Why Convolutional Neural Networks?
1:) CONVOLUTION NEURAL NETWORKS
CNN Architecture:
1:) CONVOLUTION NEURAL NETWORKS
Advantages of Convolutional Neural
Networks(CNN)
• Good at detecting patterns and features in
images, videos, and audio signals.
• Robust to translation, rotation, and scaling
invariance.
• End-to-end training, no need for manual
feature extraction.
• Can handle large amounts of data and
achieve high accuracy.
1:) CONVOLUTION NEURAL NETWORKS
Disadvantages of Convolutional Neural
Networks (CNNs):
• Computationally expensive to train and
require a lot of memory.
• Can be prone to overfitting if not enough data
or proper regularization is used.
• Requires large amounts of labeled data.
• Interpretability is limited, it’s hard to
understand what the network has learned.
1:) CONVOLUTION NEURAL NETWORKS
Types of convolution neural networks :
A number of variant CNN architectures have
emerged with the introduction of new datasets, such
as MNIST and CIFAR-10, and competitions, like
ImageNet Large Scale Visual Recognition Challenge
(ILSVRC). Some of these other architectures include:
AlexNet
VGGNet
GoogLeNet
ResNet
ZFNet
Types of convolution neural networks :
Why ResNet?
Deep Networks are hard to train because
of vanishing gradient problem.
1:) CONVOLUTION NEURAL NETWORKS
Types of convolution neural networks :
ResNet :
Types of convolution neural networks :
ResNet :
Skip Connections
Resnet first introduced the concept of skip connection.
"Add the original input to the output of the convolution
block"
Types of convolution neural networks :
ResNet :
Y=F(x)+X
# make F(X) =0, so that we can make Y=X
Types of convolution neural networks :
ResNet :
Types of convolution neural networks :
ResNet : (Working Process)
Types of convolution neural networks :
ResNet : (Working Process)
Types of convolution neural networks :
ResNet : (Working Process)
Types of convolution neural networks :
ResNet : (Working Process)
Types of convolution neural networks :
ResNet : (Working Process in KERAS)
Types of convolution neural networks :
ResNet : (Working Process in KERAS)
In a Residual block we add Tensors of same
shape !
1:) CONVOLUTION NEURAL NETWORKS
Types of convolution neural networks :
ResNet :
Advantages:
• Deeper networks
ResNet enables the construction of deeper
neural networks, with more than a hundred layers,
which was previously impossible due to the
vanishing gradient problem.
The residual connections allow the Network to
learn better representations and optimize the
gradient flow, making it easier to train deeper
1:) CONVOLUTION NEURAL NETWORKS
Types of convolution neural networks :
ResNet :
Advantages:
• Improved accuracy
ResNet has achieved state-of-the-art performance
on several benchmark datasets, such as ImageNet, CIFAR-
10, and CIFAR-100, demonstrating its superior accuracy
compared to other deep neural network architectures.
• Faster convergence
ResNet enables faster convergence during training,
thanks to the residual connections that allow for better
gradient flow and optimization. This results in faster
training and better convergence to the optimal solution.
1:) CONVOLUTION NEURAL NETWORKS
Types of convolution neural networks :
ResNet :
Dis- Advantages:
Complexity
Overfitting
Interpretability
1:) DEEP CONVOLUTION MODELS
2.) Alexnet:
AlexNet, developed by Alex Krizhevsky, Ilya Sutskever,
and Geoffrey Hinton, is a landmark model that won the
ImageNet Large-Scale Visual Recognition Challenge in
2012.
It introduced several innovative ideas that shaped
the future of CNNs.
1:) DEEP CONVOLUTION MODELS
2.) Alexnet: Why Alexnet?
Inception Network
1:) DEEP CONVOLUTION MODELS
Reference:
(1) https://towardsdatascience.com/the-w3h-
of-alexnet-vggnet-resnet-and-inception-
7baaaecccc96.
(2) https://cv-tricks.com/cnn/understand-
resnet-alexnet-vgg-inception/