image classification with digitsgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  ·...

72
1 Image Classification with DIGITS NVIDIA Deep Learning Institute

Upload: others

Post on 12-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

1

Image Classification with DIGITS

NVIDIA Deep Learning Institute

Page 2: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

2

DEEP LEARNING INSTITUTEDLI Mission

Helping people solve challenging problems using AI and deep learning.

• Developers, data scientists and engineers

• Self-driving cars, healthcare and robotics

• Training, optimizing, and deploying deep neural networks

Page 3: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

3 3

Agenda

• Intro to Deep Learning

• Training vs. Programming

• Train our first neural network - Lab

• How networks “learn”

• Increasing performance - Lab

• Next Steps

Page 4: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

4

WHAT IS DEEP LEARNING?

Page 5: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

ACCOMPLISHING COMPLEX GOALS

Page 6: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

SWEEPING ACROSS INDUSTRIESInternet Services Medicine Media & Entertainment Security & Defense Autonomous Machines

➢ Cancer cell detection

➢ Diabetic grading

➢ Drug discovery

➢ Pedestrian detection

➢ Lane tracking

➢ Recognize traffic signs

➢ Face recognition

➢ Video surveillance

➢ Cyber security

➢ Video captioning

➢ Content based search

➢ Real time translation

➢ Image/Video classification

➢ Speech recognition

➢ Natural language processing

Page 7: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

“Seeing” Gravity In Real Time insideHPC.com SurveyNovember 2016

92%believe AI will impact their work

93%using deep learning seeing positive results

TRANSFORMING RESEARCH

Accelerating Drug Discovery

Page 8: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

Difference in Workflow

InputHand

Designed Features

Output

Classic Machine Learning [ 1990 : now ]Examples [ Regression and SVMs ]

Model / Mapping

Example [ Conv Net ]

InputSimple

FeaturesOutput

Deep/End-to-End Learning [ 2012 : now ]

Model/ Mapping

Complex Features

Page 9: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

Traditional Workflow

InputHand

Designed Features

Output

Classic Machine Learning [ 1990 : now ]Examples [ Regression and SVMs ]

Model / Mapping

Challenge in Slack channel: How would you describe this image to someone (or something) blind?

Difficult: From it’s raw pixels.Medium: From geometric primitives (lines, curves, colors)Easy: Using any words that you may know

Page 10: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

Deep Learning Workflow

Example [ Conv Net ]

InputSimple

FeaturesOutput

Deep/End-to-End Learning [ 2012 : now ]

Model/ Mapping

Complex Features

Experience: Trust Neural Network to learn features and model by providing inputs and outputs.

Key Skill: Experience (data) creation

Page 11: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

11 11

INPUT TO OUTPUTLouie or Not Louie?

1 = Louie0= Not Louie.85 = 85% confident Louie

Page 12: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

12 12

INPUT TO OUTPUTLouie or Not Louie?

Yes, this beagle is Louie!

1 = Louie0= Not Louie.85 = 85% confident Louie

Page 13: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

13 13 No, not Louie!

INPUT TO OUTPUTLouie or Not Louie?

1 = Louie0= Not Louie.85 = 85% confident Louie

Page 14: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

14 14 No, not Louie!

INPUT TO OUTPUTLouie or Not Louie?

1 = Louie0= Not Louie.85 = 85% confident Louie

Page 15: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

15 15 Yup, that’s Louie!

INPUT TO OUTPUTLouie or Not Louie?

1 = Louie0= Not Louie.85 = 85% confident Louie

Page 16: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

16 16 Yea, that’s Louie!

INPUT TO OUTPUTLouie or Not Louie?

1 = Louie0= Not Louie.85 = 85% confident Louie

Page 17: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

17 17 Yes! Another epoch?

INPUT TO OUTPUTLouie or Not Louie?

1 = Louie0= Not Louie.85 = 85% confident Louie

Page 18: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

HOW IT WORKS

Page 19: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

HOW IT WORKS

Page 20: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

HOW IT WORKS

Page 21: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

HOW IT WORKS

Page 22: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

22

Training a network with dataLab

Page 23: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

23 23

HANDWRITTEN DIGIT RECOGNITIONHELLO WORLD of machine learning

Page 24: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

24

WHAT THIS LAB IS

• An introduction to: • Deep Learning• Workflow of training a network • Understanding the results

• Hands-on exercises using DIGITS for computer vision and classification

Page 25: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

25

NVIDIA’S DIGITS

Page 26: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

26 26

Process Data Configure DNN VisualizationMonitor Progress

Interactive Deep Learning GPU Training System

NVIDIA DIGITS

Page 27: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

27

WHAT THIS LAB IS NOT

• Intro to machine learning from first principles

• Rigorous mathematical formalism of neural networks

• Survey of all the features and options of tools and frameworks

Page 28: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

28

ASSUMPTIONS

• No background in Deep Learning needed

• Understand how to:

• Navigate a web browser

• Download files

• Locate files in file managers

Page 29: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

29

LAB OVERVIEW• Learn about the workflow of Deep Learning

• Load data• Expose a network to data• Evaluate model results• Try different techniques to improve initial results

Page 30: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

30

LAUNCHING THE LAB

Page 31: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

31

NAVIGATING TO QWIKLABS

1. Navigate to: https://nvlabs.qwiklab.com

2. Login or create a new account

Page 32: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

32

ACCESSING LAB ENVIRONMENT

3. Select the event specific In-Session Class in the upper left

4. Click the “Image Classification with DIGITS” Class from the list

Page 33: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

33

LAUNCHING THE LAB ENVIRONMENT5. Click on the Select

button to launch the lab environment

• After a short wait, lab Connection information will be shown

• Please ask Lab Assistants for help!

Page 34: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

34

LAUNCHING THE LAB ENVIRONMENT

6. Click on the Start Lab button

Page 35: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

35

LAUNCHING THE LAB ENVIRONMENT

You should see that the lab environment is “launching” towards the upper-right corner

Page 36: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

36

CONNECTING TO THE LAB ENVIRONMENT

7. Click on “here” to access your lab environment / Jupyter notebook

Page 37: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

37

CONNECTING TO THE LAB ENVIRONMENT

You should see your “Image Classification with DIGITS” Jupyter notebook

Page 38: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

38

JUPYTER NOTEBOOK

1. Place your cursor in the code

2. Click the “run cell” button

3. Confirm you receive the same result

Page 39: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

39

STARTING DIGITS

Instruction in Jupyter notebook will link you to DIGITS

Page 40: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

40

ACCESSING DIGITS

• Will be prompted to enter a username to access DIGITS

• Can enter any username

• Use lower case letters

Page 41: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

41

Evaluating Performance

Page 42: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

42 42

Loss function(Validation)

Loss function(Training)

Accuracyobtained from

validation dataset

EVALUATE THE MODEL

Page 43: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

43

DEEP LEARNING APPROACH - TRAINING

Input

Process• Forward propagation

yields an inferred label for each training image

• Loss function used to calculate difference between known label and predicted label for each image

• Weights are adjusted during backward propagation

• Repeat the process

Forward propagation

Backward propagation

Page 44: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

44

Next Challenges

•Increase accuracy and confidence with similar data

•Generalize performance to more diverse data

Ideas?

Page 45: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

45

Lab Review

Page 46: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

46

Defaults Training+Data

1 : 99.90 % 0 : 93.11 %

2 : 69.03 % 2 : 87.23 %

8 : 71.37 % 8 : 71.60 %

8 : 85.07 % 8 : 79.72 %

0 : 99.00 % 0 : 95.82 %

8 : 99.69 % 8 : 100.0 %

8 : 54.75 % 2 : 70.57 %

More dataFull dataset ( 10 epochs )

• 99% of accuracy achieved

• No improvements in recognizing real-world images

Page 47: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

47

SMALL DATASET FULL DATASET +INVERTED

1 : 99.90 % 0 : 93.11 % 1 : 90.84 %

2 : 69.03 % 2 : 87.23 % 2 : 89.44 %

8 : 71.37 % 8 : 71.60 % 3 : 100.0 %

8 : 85.07 % 8 : 79.72 % 4 : 100.0 %

0 : 99.00 % 0 : 95.82 % 7 : 82.84 %

8 : 99.69 % 8 : 100.0 % 8 : 100.0 %

8 : 54.75 % 2 : 70.57 % 2 : 96.27 %

DATA AUGMENTATIONAdding inverted images ( 10 epochs )

Page 48: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

48

DATA AUGMENTATIONAdding Inverted Images

Page 49: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

49

SMALL DATASET FULL DATASET +INVERTED ADDING LAYER

1 : 99.90 % 0 : 93.11 % 1 : 90.84 % 1 : 59.18 %

2 : 69.03 % 2 : 87.23 % 2 : 89.44 % 2 : 93.39 %

8 : 71.37 % 8 : 71.60 % 3 : 100.0 % 3 : 100.0 %

8 : 85.07 % 8 : 79.72 % 4 : 100.0 % 4 : 100.0 %

0 : 99.00 % 0 : 95.82 % 7 : 82.84 % 2 : 62.52 %

8 : 99.69 % 8 : 100.0 % 8 : 100.0 % 8 : 100.0 %

8 : 54.75 % 2 : 70.57 % 2 : 96.27 % 8 : 70.83 %

MODIFIED NETWORKAdding filters and ReLU layer ( 10 epochs )

Page 50: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

50

MODIFY THE NETWORKNecessary for less “solved” challenges.

layer { name: "pool1“type: "Pooling“…

}

layer {name: "reluP1"type: "ReLU"bottom: "pool1"top: "pool1"

}

layer {name: "reluP1“

layer { name: "conv1" type: "Convolution"

...convolution_param {num_output: 75...

layer {name: "conv2"type: "Convolution"...convolution_param {num_output: 100...

Page 51: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

51

Next Steps• Experiment with Image Classification

• Different datasets

• Increase performance

• Learn to train existing networks with data for other challenges

• Learn about network construction

• Learn about how to create an image classifier with other frameworks

• Caffe/Keras

• Tensorflow

• Etc.

Page 52: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

52

Appendix

Page 53: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

53

Activation functions

tanh Sigmoid ReLU

Page 54: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

54 54

CNN - Example

Each pixel is a neuron

Page 55: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

55 55

CNN - Example - 1st Feature Map

3x3 Kernel, 1 Stride, weights constant per kernel

Page 56: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

56 56

CNN - Example - 1st Feature Map

3x3 Kernel, 1 Stride, weights constant per kernel

Page 57: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

57 57

CNN - Example - 1st Feature Map

3x3 Kernel, 1 Stride, weights constant per kernel

Page 58: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

58 58

CNN - Example - 1st Feature Map

3x3 Kernel, 1 Stride, weights constant per kernel

Page 59: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

59 59

CNN - Example - 1st Feature Map

3x3 Kernel, 1 Stride, weights constant per kernel

Page 60: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

60 60

CNN - Example - 1st Feature Map

3x3 Kernel, 1 Stride, weights constant per kernel

Page 61: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

61

CNN - Example - 2nd Feature Map

Page 62: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

62

CNN - Example - 2nd Feature Map

Page 63: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

63

CNN - Example - 2nd Feature Map

Page 64: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

64

CNN - Example - 2nd Feature Map

Page 65: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

65

CNN - Example - 2nd Feature Map

Page 66: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

66

CNN - Example - 2nd Feature Map

Page 67: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

67

CNN - Example - Consecutive Convolutions

• Each filter in above layer performs convolution on all filters in previous layer, same for colour channels.

Page 68: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

68

CNN - Example - Consecutive Convolutions

•Each filter in above layer performs convolution on all filters in previous layer, same for colour channels.

Page 69: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

69

CNN - Example - Consecutive Convolutions

•Each filter in above layer performs convolution on all filters in previous layer, same for colour channels.

Page 70: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

70

CNN - Example - Consecutive Convolutions

•Each filter in above layer performs convolution on all filters in previous layer, same for colour channels.

Page 71: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

71

Pooling

•Pooling performs subsampling and reduces network size•Example of MAX pooling (selecting the maximum value)

[http://cs231n.github.io/]

Page 72: Image Classification with DIGITSgpucomputing.shef.ac.uk/.../image-classification.pdf2018/07/24  · You should see your “Image Classification with DIGITS” Jupyter notebook 38 JUPYTER

72

www.nvidia.com/dli

Instructor: