SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Downloaden Sie, um offline zu lesen
1
© 2017 The MathWorks, Inc.
Deep Learning for Computer Vision Applications Using
MATLAB
Elza John
Training Engineer
Arun Mathamkode
Application Support Engineer
2
What is deep learning?- Overview
Why deep learning?
Pretrained networks and Network layers
Building your own network
Transfer learning with CNNs
Agenda
3
Traditional Machine Learning
Deep learning performs end-end learning by learning features, representations
and tasks directly from images, text and sound
Traditional Machine Learning
Machine
Learning
Classification
Feature Extraction
Truck
Car ✓
Bicycle


Handcrafted Features
Deep Learning
…
𝟗𝟓%
𝟑%


𝟐%
Truck
Car ✓
Bicycle


Convolutional Neural Network (CNN)
Learned features
End-to-end learning
Feature learning + Classification
vs Deep Learning
4
Deep learning Applications
Semantic Segmentation Vehicle Detection
5
What is deep learning?- Overview
Why deep learning?
Pretrained networks and Network layers
Building your own network
Transfer learning with CNNs
Agenda
6
Deep learning models can surpass human accuracy.
Human
Accuracy
Source: ILSVRC Top-5 Error on ImageNet
7
Deep Learning Enablers
Labeled public datasets Increased GPU acceleration
World-class models
AlexNet
PRETRAINED MODEL
Caffe
M O D E L S
ResNet
PRETRAINED MODEL
TensorFlow/Keras
M O D E L S
VGG-16
PRETRAINED MODEL
GoogLeNet
PRETRAINED MODEL
8
Let’s try it out!
Exercise: SS_DeepLearningIn5Lines.mlx
9
What is deep learning?- Overview
Why deep learning?
Pretrained networks and Network layers
Building your own network
Transfer learning with CNNs
Agenda
10
Pre-Trained Models and Network Architectures
Pretrained Models
▪ AlexNet
▪ VGG-16
▪ VGG-19
▪ GoogLeNet
▪ Resnet50
▪ Resnet101
Import Models from Frameworks
▪ Caffe Model Importer
(including Caffe Model Zoo)
– importCaffeLayers
– importCaffeNetwork
▪ TensorFlow-Keras Model Importer
– importKerasLayers
– importKerasNetwork
Download from within MATLAB
net = alexnet;
net = vgg16;
net = vgg19;
net = googlenet;
net = resnet50;
net = resnet101
11
Deep Learning Uses a Neural Network Architecture
Input
Layer Hidden Layers (n)
Output
Layer
12
Convolutional Neural Network
Convolution +
ReLU Pooling
Input
Convolution +
ReLU Pooling
…
…
Flatten Fully
Connected
Softmax
dog
…
cat
…
…
Feature Learning Classification
goldfish✓


14
Takeaways
▪ Pre-trained networks have a pre-determined layer order
that makes them effective for classifying images
– Typically trained to classify lots of images
▪ Great starting point, but not consistently accurate
– We’ll fix this later with transfer learning!
15
What is deep learning?- Overview
Why deep learning?
Pretrained networks and Network layers
Building your own network
Transfer learning with CNNs
Agenda
16
Deep Learning Workflow
Preprocess Images
Define Layers in CNN
Set training options
Train the network
Test/deploy trained network
Repeat these steps
until network reaches
desired level of
accuracy
17
Let’s try it out!
Exercise: SS_MNIST_HandwritingRecognition.mlx
18
Takeaways
▪ Deep learning for image classification uses CNNs
▪ CNNs can have different combinations of initial layers but usually
end with:
– Fully Connected Layer
– Softmax Layer
– Classification Layer
▪ Important factors that affect accuracy and training time
– Network architecture
– Mini Batch Size
– Initial learning rate
19
What is deep learning?- Overview
Why deep learning?
Pretrained networks and Network layers
Building your own network
Transfer learning with CNNs
Agenda
20
Two Approaches for Deep Learning
2. Fine-tune a pre-trained model
1. Train a Deep Neural Network from Scratch
(transfer learning)
21
Fine-tune a pre-trained model (transfer learning)
Recommended when:
Training data 100s to 1000s of labeled images (small)
Computation Moderate computation (GPU optional)
Training Time Seconds to minutes
Model accuracy Good, depends on the pre-trained CNN model
Train a deep neural network from scratch
Recommended when:
Training data 1000s to millions of labeled images
Computation Compute intensive (requires GPU)
Training Time Days to Weeks for real problems
Model accuracy High (can over fit to small datasets)
Two Approaches for Deep Learning
22
Transfer Learning Workflow
Probability
Boat
Plane
Car
Train
Deploy results
Early layers that learned
low-level features
(edges, blobs, colors)
Last layers that
learned task
specific features
1 million images
1000s classes
Load pretrained network
Fewer classes
Learn faster
New layers to learn
features specific
to your data
Replace final layers
100s images
10s classes
Training images
Training options
Train network
Test images
Trained Network
Predict and assess
network accuracy
23
Transfer Learning Workflow – Step 1
Early layers learn low-
level features (edges,
blobs, colors)
Last layers
learn task-
specific features
1 million images
1000s classes
Load pretrained network
24
Transfer Learning Workflow – Step 2
Early layers that learned
low-level features
(edges, blobs, colors)
Last layers that
learned task
specific features
1 million images
1000s classes
Load pretrained network
Fewer classes
Learn faster
New layers learn
features specific
to your data
Replace final layers
25
Transfer Learning Workflow – Step 3
Early layers that learned
low-level features
(edges, blobs, colors)
Last layers that
learned task
specific features
1 million images
1000s classes
Load pretrained network
Fewer classes
Learn faster
New layers to learn
features specific
to your data
Replace final layers
100s images
10s classes
Training images
Training options
Train network
26
100s images
10s classes
Training images
Training options
Train network
Transfer Learning Workflow – Step 4
Early layers that learned
low-level features
(edges, blobs, colors)
Last layers that
learned task
specific features
1 million images
1000s classes
Load pretrained network
Fewer classes
Learn faster
New layers to learn
features specific
to your data
Replace final layers
Test images
Trained Network
Predict and assess
network accuracy
27
Transfer Learning Workflow – Step 5
Early layers that learned
low-level features
(edges, blobs, colors)
Last layers that
learned task
specific features
1 million images
1000s classes
Load pretrained network
Fewer classes
Learn faster
New layers to learn
features specific
to your data
Replace final layers
100s images
10s classes
Training images
Training options
Train network
Test images
Trained Network
Predict and assess
network accuracy
Test images
Trained Network
Predict and assess
network accuracy
Probability
Boat
Plane
Car
Train
Deploy results
28
Transfer Learning Workflow
Probability
Boat
Plane
Car
Train
Deploy results
Early layers that learned
low-level features
(edges, blobs, colors)
Last layers that
learned task
specific features
1 million images
1000s classes
Load pretrained network
Fewer classes
Learn faster
New layers to learn
features specific
to your data
Replace final layers
100s images
10s classes
Training images
Training options
Train network
Test images
Trained Network
Predict and assess
network accuracy
29
Let’s try it out!
Exercise: SS_SeeFoodTransferLearning.mlx
30
Takeaways – Transfer Learning
▪ Replace last layers with our own layers
▪ Efficient way to modify pre-trained models to our needs
▪ Use an Image datastore when working with lots of
images
31
One Step Left – Deployment!
Access Data Preprocess Select Network Train
Image
Acquisition
Image
Processing
Computer
Vision System
Neural
Network
Parallel
Computing
GPU
Coder
Deploy
32
What Next?
33
Training Services
Exploit the full potential of MathWorks products
Flexible delivery options:
▪ Public training available in several cities
▪ Onsite training with standard or
customized courses
▪ Web-based training with live, interactive
instructor-led courses
More than 48 course offerings:
▪ Introductory and intermediate training on MATLAB, Simulink,
Stateflow, code generation, and Polyspace products
▪ Specialized courses in control design, signal processing, parallel computing,
code generation, communications, financial analysis,
and other areas
www.mathworks.in/training
34
Thank You!
35
Questions?

Weitere ähnliche Inhalte

Ähnlich wie Deep-learning-for-computer-vision-applications-using-matlab.pdf

Strata London - Deep Learning 05-2015
Strata London - Deep Learning 05-2015Strata London - Deep Learning 05-2015
Strata London - Deep Learning 05-2015Turi, Inc.
 
OReilly AI Transfer Learning
OReilly AI Transfer LearningOReilly AI Transfer Learning
OReilly AI Transfer LearningDanielle Dean
 
How to use transfer learning to bootstrap image classification and question a...
How to use transfer learning to bootstrap image classification and question a...How to use transfer learning to bootstrap image classification and question a...
How to use transfer learning to bootstrap image classification and question a...Wee Hyong Tok
 
From Conventional Machine Learning to Deep Learning and Beyond.pptx
From Conventional Machine Learning to Deep Learning and Beyond.pptxFrom Conventional Machine Learning to Deep Learning and Beyond.pptx
From Conventional Machine Learning to Deep Learning and Beyond.pptxChun-Hao Chang
 
Squeezing Deep Learning Into Mobile Phones
Squeezing Deep Learning Into Mobile PhonesSqueezing Deep Learning Into Mobile Phones
Squeezing Deep Learning Into Mobile PhonesAnirudh Koul
 
Synthetic dialogue generation with Deep Learning
Synthetic dialogue generation with Deep LearningSynthetic dialogue generation with Deep Learning
Synthetic dialogue generation with Deep LearningS N
 
AWS re:Invent 2016: Deep Learning at Cloud Scale: Improving Video Discoverabi...
AWS re:Invent 2016: Deep Learning at Cloud Scale: Improving Video Discoverabi...AWS re:Invent 2016: Deep Learning at Cloud Scale: Improving Video Discoverabi...
AWS re:Invent 2016: Deep Learning at Cloud Scale: Improving Video Discoverabi...Amazon Web Services
 
Computer Vision for Beginners
Computer Vision for BeginnersComputer Vision for Beginners
Computer Vision for BeginnersSanghamitra Deb
 
Convolutional neural network
Convolutional neural network Convolutional neural network
Convolutional neural network Yan Xu
 
B4UConference_machine learning_deeplearning
B4UConference_machine learning_deeplearningB4UConference_machine learning_deeplearning
B4UConference_machine learning_deeplearningHoa Le
 
Scalable Deep Learning Using Apache MXNet
Scalable Deep Learning Using Apache MXNetScalable Deep Learning Using Apache MXNet
Scalable Deep Learning Using Apache MXNetAmazon Web Services
 
The deep learning tour - Q1 2017
The deep learning tour - Q1 2017 The deep learning tour - Q1 2017
The deep learning tour - Q1 2017 Eran Shlomo
 
(CMP305) Deep Learning on AWS Made EasyCmp305
(CMP305) Deep Learning on AWS Made EasyCmp305(CMP305) Deep Learning on AWS Made EasyCmp305
(CMP305) Deep Learning on AWS Made EasyCmp305Amazon Web Services
 
Don't Start from Scratch: Transfer Learning for Novel Computer Vision Problem...
Don't Start from Scratch: Transfer Learning for Novel Computer Vision Problem...Don't Start from Scratch: Transfer Learning for Novel Computer Vision Problem...
Don't Start from Scratch: Transfer Learning for Novel Computer Vision Problem...StampedeCon
 
Metaphorical Analysis of diseases in Tomato leaves using Deep Learning Algori...
Metaphorical Analysis of diseases in Tomato leaves using Deep Learning Algori...Metaphorical Analysis of diseases in Tomato leaves using Deep Learning Algori...
Metaphorical Analysis of diseases in Tomato leaves using Deep Learning Algori...IRJET Journal
 
Discovering Your AI Super Powers - Tips and Tricks to Jumpstart your AI Projects
Discovering Your AI Super Powers - Tips and Tricks to Jumpstart your AI ProjectsDiscovering Your AI Super Powers - Tips and Tricks to Jumpstart your AI Projects
Discovering Your AI Super Powers - Tips and Tricks to Jumpstart your AI ProjectsWee Hyong Tok
 
2016 MediaEval - Interestingness Task Overview
2016 MediaEval - Interestingness Task Overview2016 MediaEval - Interestingness Task Overview
2016 MediaEval - Interestingness Task Overviewmultimediaeval
 
deeplearning
deeplearningdeeplearning
deeplearninghuda2018
 
IBM Deep Learning Overview
IBM Deep Learning OverviewIBM Deep Learning Overview
IBM Deep Learning OverviewDavid Solomon
 

Ähnlich wie Deep-learning-for-computer-vision-applications-using-matlab.pdf (20)

Strata London - Deep Learning 05-2015
Strata London - Deep Learning 05-2015Strata London - Deep Learning 05-2015
Strata London - Deep Learning 05-2015
 
Deep learning-practical
Deep learning-practicalDeep learning-practical
Deep learning-practical
 
OReilly AI Transfer Learning
OReilly AI Transfer LearningOReilly AI Transfer Learning
OReilly AI Transfer Learning
 
How to use transfer learning to bootstrap image classification and question a...
How to use transfer learning to bootstrap image classification and question a...How to use transfer learning to bootstrap image classification and question a...
How to use transfer learning to bootstrap image classification and question a...
 
From Conventional Machine Learning to Deep Learning and Beyond.pptx
From Conventional Machine Learning to Deep Learning and Beyond.pptxFrom Conventional Machine Learning to Deep Learning and Beyond.pptx
From Conventional Machine Learning to Deep Learning and Beyond.pptx
 
Squeezing Deep Learning Into Mobile Phones
Squeezing Deep Learning Into Mobile PhonesSqueezing Deep Learning Into Mobile Phones
Squeezing Deep Learning Into Mobile Phones
 
Synthetic dialogue generation with Deep Learning
Synthetic dialogue generation with Deep LearningSynthetic dialogue generation with Deep Learning
Synthetic dialogue generation with Deep Learning
 
AWS re:Invent 2016: Deep Learning at Cloud Scale: Improving Video Discoverabi...
AWS re:Invent 2016: Deep Learning at Cloud Scale: Improving Video Discoverabi...AWS re:Invent 2016: Deep Learning at Cloud Scale: Improving Video Discoverabi...
AWS re:Invent 2016: Deep Learning at Cloud Scale: Improving Video Discoverabi...
 
Computer Vision for Beginners
Computer Vision for BeginnersComputer Vision for Beginners
Computer Vision for Beginners
 
Convolutional neural network
Convolutional neural network Convolutional neural network
Convolutional neural network
 
B4UConference_machine learning_deeplearning
B4UConference_machine learning_deeplearningB4UConference_machine learning_deeplearning
B4UConference_machine learning_deeplearning
 
Scalable Deep Learning Using Apache MXNet
Scalable Deep Learning Using Apache MXNetScalable Deep Learning Using Apache MXNet
Scalable Deep Learning Using Apache MXNet
 
The deep learning tour - Q1 2017
The deep learning tour - Q1 2017 The deep learning tour - Q1 2017
The deep learning tour - Q1 2017
 
(CMP305) Deep Learning on AWS Made EasyCmp305
(CMP305) Deep Learning on AWS Made EasyCmp305(CMP305) Deep Learning on AWS Made EasyCmp305
(CMP305) Deep Learning on AWS Made EasyCmp305
 
Don't Start from Scratch: Transfer Learning for Novel Computer Vision Problem...
Don't Start from Scratch: Transfer Learning for Novel Computer Vision Problem...Don't Start from Scratch: Transfer Learning for Novel Computer Vision Problem...
Don't Start from Scratch: Transfer Learning for Novel Computer Vision Problem...
 
Metaphorical Analysis of diseases in Tomato leaves using Deep Learning Algori...
Metaphorical Analysis of diseases in Tomato leaves using Deep Learning Algori...Metaphorical Analysis of diseases in Tomato leaves using Deep Learning Algori...
Metaphorical Analysis of diseases in Tomato leaves using Deep Learning Algori...
 
Discovering Your AI Super Powers - Tips and Tricks to Jumpstart your AI Projects
Discovering Your AI Super Powers - Tips and Tricks to Jumpstart your AI ProjectsDiscovering Your AI Super Powers - Tips and Tricks to Jumpstart your AI Projects
Discovering Your AI Super Powers - Tips and Tricks to Jumpstart your AI Projects
 
2016 MediaEval - Interestingness Task Overview
2016 MediaEval - Interestingness Task Overview2016 MediaEval - Interestingness Task Overview
2016 MediaEval - Interestingness Task Overview
 
deeplearning
deeplearningdeeplearning
deeplearning
 
IBM Deep Learning Overview
IBM Deep Learning OverviewIBM Deep Learning Overview
IBM Deep Learning Overview
 

Kürzlich hochgeladen

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Kürzlich hochgeladen (20)

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 

Deep-learning-for-computer-vision-applications-using-matlab.pdf

  • 1. 1 © 2017 The MathWorks, Inc. Deep Learning for Computer Vision Applications Using MATLAB Elza John Training Engineer Arun Mathamkode Application Support Engineer
  • 2. 2 What is deep learning?- Overview Why deep learning? Pretrained networks and Network layers Building your own network Transfer learning with CNNs Agenda
  • 3. 3 Traditional Machine Learning Deep learning performs end-end learning by learning features, representations and tasks directly from images, text and sound Traditional Machine Learning Machine Learning Classification Feature Extraction Truck Car ✓ Bicycle   Handcrafted Features Deep Learning … 𝟗𝟓% 𝟑%   𝟐% Truck Car ✓ Bicycle   Convolutional Neural Network (CNN) Learned features End-to-end learning Feature learning + Classification vs Deep Learning
  • 4. 4 Deep learning Applications Semantic Segmentation Vehicle Detection
  • 5. 5 What is deep learning?- Overview Why deep learning? Pretrained networks and Network layers Building your own network Transfer learning with CNNs Agenda
  • 6. 6 Deep learning models can surpass human accuracy. Human Accuracy Source: ILSVRC Top-5 Error on ImageNet
  • 7. 7 Deep Learning Enablers Labeled public datasets Increased GPU acceleration World-class models AlexNet PRETRAINED MODEL Caffe M O D E L S ResNet PRETRAINED MODEL TensorFlow/Keras M O D E L S VGG-16 PRETRAINED MODEL GoogLeNet PRETRAINED MODEL
  • 8. 8 Let’s try it out! Exercise: SS_DeepLearningIn5Lines.mlx
  • 9. 9 What is deep learning?- Overview Why deep learning? Pretrained networks and Network layers Building your own network Transfer learning with CNNs Agenda
  • 10. 10 Pre-Trained Models and Network Architectures Pretrained Models ▪ AlexNet ▪ VGG-16 ▪ VGG-19 ▪ GoogLeNet ▪ Resnet50 ▪ Resnet101 Import Models from Frameworks ▪ Caffe Model Importer (including Caffe Model Zoo) – importCaffeLayers – importCaffeNetwork ▪ TensorFlow-Keras Model Importer – importKerasLayers – importKerasNetwork Download from within MATLAB net = alexnet; net = vgg16; net = vgg19; net = googlenet; net = resnet50; net = resnet101
  • 11. 11 Deep Learning Uses a Neural Network Architecture Input Layer Hidden Layers (n) Output Layer
  • 12. 12 Convolutional Neural Network Convolution + ReLU Pooling Input Convolution + ReLU Pooling … … Flatten Fully Connected Softmax dog … cat … … Feature Learning Classification goldfish✓  
  • 13. 14 Takeaways ▪ Pre-trained networks have a pre-determined layer order that makes them effective for classifying images – Typically trained to classify lots of images ▪ Great starting point, but not consistently accurate – We’ll fix this later with transfer learning!
  • 14. 15 What is deep learning?- Overview Why deep learning? Pretrained networks and Network layers Building your own network Transfer learning with CNNs Agenda
  • 15. 16 Deep Learning Workflow Preprocess Images Define Layers in CNN Set training options Train the network Test/deploy trained network Repeat these steps until network reaches desired level of accuracy
  • 16. 17 Let’s try it out! Exercise: SS_MNIST_HandwritingRecognition.mlx
  • 17. 18 Takeaways ▪ Deep learning for image classification uses CNNs ▪ CNNs can have different combinations of initial layers but usually end with: – Fully Connected Layer – Softmax Layer – Classification Layer ▪ Important factors that affect accuracy and training time – Network architecture – Mini Batch Size – Initial learning rate
  • 18. 19 What is deep learning?- Overview Why deep learning? Pretrained networks and Network layers Building your own network Transfer learning with CNNs Agenda
  • 19. 20 Two Approaches for Deep Learning 2. Fine-tune a pre-trained model 1. Train a Deep Neural Network from Scratch (transfer learning)
  • 20. 21 Fine-tune a pre-trained model (transfer learning) Recommended when: Training data 100s to 1000s of labeled images (small) Computation Moderate computation (GPU optional) Training Time Seconds to minutes Model accuracy Good, depends on the pre-trained CNN model Train a deep neural network from scratch Recommended when: Training data 1000s to millions of labeled images Computation Compute intensive (requires GPU) Training Time Days to Weeks for real problems Model accuracy High (can over fit to small datasets) Two Approaches for Deep Learning
  • 21. 22 Transfer Learning Workflow Probability Boat Plane Car Train Deploy results Early layers that learned low-level features (edges, blobs, colors) Last layers that learned task specific features 1 million images 1000s classes Load pretrained network Fewer classes Learn faster New layers to learn features specific to your data Replace final layers 100s images 10s classes Training images Training options Train network Test images Trained Network Predict and assess network accuracy
  • 22. 23 Transfer Learning Workflow – Step 1 Early layers learn low- level features (edges, blobs, colors) Last layers learn task- specific features 1 million images 1000s classes Load pretrained network
  • 23. 24 Transfer Learning Workflow – Step 2 Early layers that learned low-level features (edges, blobs, colors) Last layers that learned task specific features 1 million images 1000s classes Load pretrained network Fewer classes Learn faster New layers learn features specific to your data Replace final layers
  • 24. 25 Transfer Learning Workflow – Step 3 Early layers that learned low-level features (edges, blobs, colors) Last layers that learned task specific features 1 million images 1000s classes Load pretrained network Fewer classes Learn faster New layers to learn features specific to your data Replace final layers 100s images 10s classes Training images Training options Train network
  • 25. 26 100s images 10s classes Training images Training options Train network Transfer Learning Workflow – Step 4 Early layers that learned low-level features (edges, blobs, colors) Last layers that learned task specific features 1 million images 1000s classes Load pretrained network Fewer classes Learn faster New layers to learn features specific to your data Replace final layers Test images Trained Network Predict and assess network accuracy
  • 26. 27 Transfer Learning Workflow – Step 5 Early layers that learned low-level features (edges, blobs, colors) Last layers that learned task specific features 1 million images 1000s classes Load pretrained network Fewer classes Learn faster New layers to learn features specific to your data Replace final layers 100s images 10s classes Training images Training options Train network Test images Trained Network Predict and assess network accuracy Test images Trained Network Predict and assess network accuracy Probability Boat Plane Car Train Deploy results
  • 27. 28 Transfer Learning Workflow Probability Boat Plane Car Train Deploy results Early layers that learned low-level features (edges, blobs, colors) Last layers that learned task specific features 1 million images 1000s classes Load pretrained network Fewer classes Learn faster New layers to learn features specific to your data Replace final layers 100s images 10s classes Training images Training options Train network Test images Trained Network Predict and assess network accuracy
  • 28. 29 Let’s try it out! Exercise: SS_SeeFoodTransferLearning.mlx
  • 29. 30 Takeaways – Transfer Learning ▪ Replace last layers with our own layers ▪ Efficient way to modify pre-trained models to our needs ▪ Use an Image datastore when working with lots of images
  • 30. 31 One Step Left – Deployment! Access Data Preprocess Select Network Train Image Acquisition Image Processing Computer Vision System Neural Network Parallel Computing GPU Coder Deploy
  • 32. 33 Training Services Exploit the full potential of MathWorks products Flexible delivery options: ▪ Public training available in several cities ▪ Onsite training with standard or customized courses ▪ Web-based training with live, interactive instructor-led courses More than 48 course offerings: ▪ Introductory and intermediate training on MATLAB, Simulink, Stateflow, code generation, and Polyspace products ▪ Specialized courses in control design, signal processing, parallel computing, code generation, communications, financial analysis, and other areas www.mathworks.in/training