Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

FUNDAMENTALS OF

DEEP LEARNING
Part 4: Data Augmentation and Deployment

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 4
• Data Augmentation
• Model Deployment
RECAP OF THE EXERCISE

Analysis

• CNN increased validation


accuracy
• Still seeing training accuracy
higher than validation
RECAP OF THE EXERCISE

Analysis Solution

• CNN increased validation • Clean data provides better


accuracy examples
• Still seeing training accuracy • Dataset variety helps the model
higher than validation generalize
DATA AUGMENTATION
6
DATA AUGMENTATION

7
IMAGE FLIPPING
Horizontal Flip

Vertical Flip

8
ROTATION

90⁰
0⁰
180⁰

270⁰
9
ZOOMING

10
WIDTH AND HEIGHT
SHIFTING

11
HOMOGRAPHY

12
BRIGHTNESS

13
CHANNEL
SHIFTING

14
MODEL DEPLOYMENT
15
MODEL DEPLOYMENT



(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
MODEL DEPLOYMENT

Training
Batch Input

Convolution

Max Pooling


MODEL DEPLOYMENT

(220, 155, 3) (220, 155, 1)


(1, 220, 155, 1)
(287, 433, 3)

Resize Greyscale “Batch”


18
LET’S TRY IT OUT!
19
20

You might also like