FUNDAMENTALS OF
DEEP LEARNING
Part 5: Pre-trained Models
1
Part 1: An Introduction to Deep Learning
Part 2: How a Neural Network Trains
AGENDA Part 3: Convolutional Neural Networks
Part 4: Data Augmentation and Deployment
Part 5: Pre-trained Models
Part 6: Advanced Architectures
AGENDA – PART 5
• Review so far
• Pre-trained Models
• Transfer Learning
REVIEW SO FAR
4
REVIEW SO FAR
• Learning Rate
• Number of Layers
• Neurons per Layer
• Activation Functions
• Dropout
• Data
5
PRE-TRAINED MODELS
6
PRE-TRAINED MODELS
PYTORCH
HUB
7
PRE-TRAINED MODELS
IM GENET
8
THE NEXT CHALLENGE
An Automated Doggy Door
9
TRANSFER LEARNING
10
THE CHALLENGE AFTER
An Automated Presidential Doggy Door
11
TRANSFER LEARNING
12
TRANSFER LEARNING
…
…
…
(28, 28, 2) (28, 28, 2)
Stacked Images Stacked Images
(3, 3, 1, 2) (3, 3, 2, 2) (512) (512)
Kernels Kernels Dense Dense
(28, 28,1) (1568)
Image Input Flattened Image (10)
Vector Output Prediction
13
Input
More
Generalized
Convolution
Max Pooling
Convolution
Dropout
Max Pooling
Convolution
Max Pooling
TRANSFER LEARNING
Dense
Dense
Output
More
Specialized
TRANSFER LEARNING
Freezing the Model?
15
TRANSFER LEARNING
16
LET’S GET STARTED!
17
18