Escolar Documentos
Profissional Documentos
Cultura Documentos
con MATLAB
Lucas Garca
&
2
Deep Learning is Everywhere
Computer Vision
Pedestrian and traffic sign detection
Landmark identification
Scene recognition
Medical diagnosis and drug discovery
4
What is Deep Learning?
5
Deep Learning is a Subset of Machine Learning
e.g. Google Captioning Project
http://googleresearch.blogspot.com/2014/11/a-picture-is-worth-thousand-coherent.html
6
Shallow Machine Learning Workflow
Train: Iterate until you find the best model
LOAD PREPROCESS SUPERVISED MODEL
DATA DATA LEARNING
Feature
Feature
Cropping CLASSIFICATION
Extraction
Extraction
Contrast Feature
Feature
REGRESSION
Adjustment Analysis
Analysis
7
What is Deep Learning?
Cat
Deep learning is a type of machine learning that learns tasks
directly from data
Dog
Learned Features Car
Dog
Bird
Cat
Bird
Car
8
What is Deep Learning?
Cat
Dog
Learned Features Car
Dog
End-to-End Learning
Cat
Bird Bird
Data Task
Car
9
Why is Deep Learning so popular now?
11
MATLAB makes Deep Learning Easy and Accessible
12
Convolutional Neural Networks
Train deep neural networks on structured data (e.g. images, signals, text)
Implements Feature Learning: Eliminates need for hand crafted features
Trained using GPUs for performance
car
truck
van
bicycle
3 2
dot 3 W1
sum 3
7 3 3
dot 3 W2
Intuition: learn filters that activate when they see some specific feature
14
Agenda
15
Agenda
16
Image classification using pre-trained network
1 clear
4 while true
5 picture = camera.snapshot; % Take a picture
6 picture = imresize(picture,[227,227]); % Resize the picture
18
Agenda
19
Two Deep Learning Approaches
Approach 1: Train a Deep Neural Network from Scratch
Approach:
Import the data
Define an architecture
Train and test the CNN Data Credit: Learning Multiple Layers of Features from Tiny Images, Alex Krizhevsky, 2009.
https://www.cs.toronto.edu/~kriz/cifar.html
21
Demo: Classifying the CIFAR-10 dataset
Approach 1: Train a Deep Neural Network from Scratch
22
Agenda
23
Why train a new model?
24
Two Deep Learning Approaches
Approach 2: Fine-tune a pre-trained model (transfer learning)
Reference models (like AlexNet, VGG-16, VGG-19) are great feature extractors
26
Demo: Classify Vehicles With Transfer Learning
Approach 2: Fine-tune a pre-trained model (transfer learning)
Convolution
Convolution
Convolution
Convolution
Connected
Activation
Activation
Activation
Activation
Pooling
Pooling
Pooling
Pooling
Layers
Fully
1000 Category
Classifier
AlexNet
New Data
car
suv
pickup 5 Category
AlexNet
Classifier
van
truck
27
Demo: Classify Vehicles With Transfer Learning
Approach 2: Fine-tune a pre-trained model (transfer learning)
28
Agenda
29
Is Object Recognition/Classification Enough?
30
Object Detection Locate and Classify Object
TRUCK CAR
SUV
31
Goal: Create Object Detector to Locate Vehicles
32
Label Images with MATLAB
33
Labeling Videos with MATLAB
34
Demo: Vehicle detection using Faster R-CNNs
35
MATLAB makes Deep Learning Easy and Accessible
imageDS = imageDatastore(dir)
Learn about new MATLAB capabilities to Easily manage large sets of images
Image Labeler
Visualize and debug deep neural networks
Video Labeler 36
MATLAB makes Deep Learning Easy and Accessible
Visualize and debug deep neural networks Deep Dream Network Activations
Feature Visualization 38
MATLAB makes Deep Learning Easy and Accessible
40
% Questions?
41