0% found this document useful (0 votes)
1 views46 pages

3 DL ConvNets

The document discusses Convolutional Neural Networks (CNNs), highlighting their advantages over fully connected layers for image processing. It covers key components such as convolution layers, pooling layers, and normalization techniques, along with various CNN architectures like AlexNet, VGG, and ResNet. Additionally, it outlines applications of CNNs in computer vision tasks such as image classification, localization, object detection, and segmentation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views46 pages

3 DL ConvNets

The document discusses Convolutional Neural Networks (CNNs), highlighting their advantages over fully connected layers for image processing. It covers key components such as convolution layers, pooling layers, and normalization techniques, along with various CNN architectures like AlexNet, VGG, and ResNet. Additionally, it outlines applications of CNNs in computer vision tasks such as image classification, localization, object detection, and segmentation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 46

Deep Learning

3- Convolutional Neural Networks

Prof. Monir EL ANNAS

Deep Learning /3- Convolutional Neural Networks 1


Convolutional Neural Networks

Problems with Fully Connected Layers on Images

Deep Learning /3- Convolutional Neural Networks 2


Convolutional Neural Networks
Problems with Fully Connected Layers on Images

Deep Learning /3- Convolutional Neural Networks 3


Convolutional Neural Networks
Problems with Fully Connected Layers on Images

Deep Learning /3- Convolutional Neural Networks 4


Convolutional Neural Networks

Problems with Fully Connected Layers on Images

Deep Learning /3- Convolutional Neural Networks 5


Convolutional Neural Networks

Problems with Fully Connected Layers on Images

Deep Learning /3- Convolutional Neural Networks 6


Convolutional Neural Networks

Problems with Fully Connected Layers on Images

Deep Learning /3- Convolutional Neural Networks 7


Convolutional Neural Networks
Problems with Fully Connected Layers on Images

Deep Learning /3- Convolutional Neural Networks 8


Convolutional Neural Networks
Problems with Fully Connected Layers on Images

Deep Learning /3- Convolutional Neural Networks 9


Convolutional Neural Networks

Problems with Fully Connected Layers on Images

Deep Learning /3- Convolutional Neural Networks 10


Convolutional Neural Networks

Convolution Layer

Deep Learning /3- Convolutional Neural Networks 11


Convolutional Neural Networks

Convolution Layer

Deep Learning /3- Convolutional Neural Networks 12


Convolutional Neural Networks

Convolution Layer

Deep Learning /3- Convolutional Neural Networks 13


Convolutional Neural Networks

Convolution Layer

Deep Learning /3- Convolutional Neural Networks 14


Convolutional Neural Networks

Dimensions of a Convolution Layer: Stride

Deep Learning /3- Convolutional Neural Networks 15


Convolutional Neural Networks

Dimensions of a Convolution Layer: Stride

Deep Learning /3- Convolutional Neural Networks 16


Convolutional Neural Networks

Dimensions of a Convolution Layer: Stride

Deep Learning /3- Convolutional Neural Networks 17


Convolutional Neural Networks

Dimensions of a Convolution Layer: Stride

Deep Learning /3- Convolutional Neural Networks 18


Convolutional Neural Networks

Dimensions of a Convolution Layer: Padding

Deep Learning /3- Convolutional Neural Networks 19


Convolutional Neural Networks

Dimensions of a Convolution Layer: Example

Deep Learning /3- Convolutional Neural Networks 20


Convolutional Neural Networks

Dimensions of a Convolution Layer: Example

Deep Learning /3- Convolutional Neural Networks 21


Convolutional Neural Networks
Pooling Layer

Deep Learning /3- Convolutional Neural Networks 22


Convolutional Neural Networks
Pooling Layer

Deep Learning /3- Convolutional Neural Networks 23


Convolutional Neural Networks
Normalization for ConvNets

Spacial Bach Normalization for


Bach Normalization for FC networks
ConvNets
• Input size (N, D)
• Input size (N, C , W , H)
• Compute minibatch mean and
• Compute minibatch mean and
variance across N (i.e., compute
variance across N, W , H (i.e.,
mean/variance for each feature
compute mean/variance for each
dimension)
channel C )
x :N ×D
x :N ×C ×H ×W
µ, σ : 1 × D
µ, σ : 1 × C × 1 × 1
γ, β : 1 × D
γ, β : 1 × C × 1 × 1
(x − µ)
y =γ +β (x − µ)
σ y =γ +β
σ

Deep Learning /3- Convolutional Neural Networks 24


Convolutional Neural Networks

Final Fully Connected Layer

Deep Learning /3- Convolutional Neural Networks 25


Convolutional Neural Networks

The ConvNet Building Blocks

Deep Learning /3- Convolutional Neural Networks 26


Convolutional Neural Networks

ConvNets Architectures

Deep Learning /3- Convolutional Neural Networks 27


Convolutional Neural Networks

ConvNets Architectures

Deep Learning /3- Convolutional Neural Networks 28


Convolutional Neural Networks
ConvNets Architectures: AlexNet

Deep Learning /3- Convolutional Neural Networks 29


Convolutional Neural Networks

ConvNets Architectures: AlexNet

Deep Learning /3- Convolutional Neural Networks 30


Convolutional Neural Networks

ConvNets Architectures: VGG

Deep Learning /3- Convolutional Neural Networks 31


Convolutional Neural Networks
ConvNets Architectures: VGG

Deep Learning /3- Convolutional Neural Networks 32


Convolutional Neural Networks

ConvNets Architectures: GoogLeNet

Deep Learning /3- Convolutional Neural Networks 33


Convolutional Neural Networks
ConvNets Architectures: GoogLeNet

Deep Learning /3- Convolutional Neural Networks 34


Convolutional Neural Networks

ConvNets Architectures: ResNet

Deep Learning /3- Convolutional Neural Networks 35


Convolutional Neural Networks
ConvNets Architectures: ResNet

Deep Learning /3- Convolutional Neural Networks 36


Convolutional Neural Networks

ConvNets Architectures: EfficientNet

Deep Learning /3- Convolutional Neural Networks 37


Convolutional Neural Networks

ConvNets Architectures

Network Year Key Feature Top-5 Accuracy Parameters FLOPs


AlexNet 2012 Deeper 84.70% 62M 1.5B
VGGNet 2014 Fixed-size kernels 92.30% 138M 19.6B
Inception 2014 Wider – Parallel kernels 93.30% 6.4M 2B
ResNet-152 2015 Shortcut connections 95.51% 60.3M 11B
EfficientNet-B7 2019 Compound scaling 97.10% 66M 37B

Deep Learning /3- Convolutional Neural Networks 38


Convolutional Neural Networks

ConvNets Architectures: Transfer Learning

Deep Learning /3- Convolutional Neural Networks 39


Convolutional Neural Networks

ConvNets Architectures: Summary

• Design your network according to your task and resources


• Take into consideration
• # Parameters
• # FLOPs
• Memory Size
• Use existing architectures when possible
• Use pre-trained models when possible

Deep Learning /3- Convolutional Neural Networks 40


Convolutional Neural Networks

Applications: Typical Computer Vision Tasks

Deep Learning /3- Convolutional Neural Networks 41


Convolutional Neural Networks

Applications: CNNs for Image Classification

• Backend: Convolution (Conv) + Pooling (Pool)


• Frontend: Fully Connected (FC) or Global Average Pooling (GAP) + Softmax

Deep Learning /3- Convolutional Neural Networks 42


Convolutional Neural Networks

Applications: CNNs for Image Localization

• Backend: Conv + Pool


• Frontend:
• One head for classification
• One head for bounding box regression

Deep Learning /3- Convolutional Neural Networks 43


Convolutional Neural Networks

Applications; CNNs for Object Detection

• Two stages:
• Region proposal
• Proposal classification + refinement
• R-CNN
• External mechanism for proposal
generation
• Fast R-CNN
• Learnt proposals, two networks
• Faster R-CNN
• Shared backbone for both stages

Deep Learning /3- Convolutional Neural Networks 44


Convolutional Neural Networks

Applications: CNNs for Semantic Segmentation

Deep Learning /3- Convolutional Neural Networks 45


Convolutional Neural Networks

Applications: CNNs for Instance Segmentation

• Mask R-CNN
• Faster R-CNN + Additional head for instance segmentation

Deep Learning /3- Convolutional Neural Networks 46

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy