1
Twin Karmakharm
Neural Network Deployment with DIGITS and TensorRT
Certified Instructor, NVIDIA Deep Learning Institute
Neural Network Deployment with DIGITS and TensorRT Twin Karmakharm - - PowerPoint PPT Presentation
Neural Network Deployment with DIGITS and TensorRT Twin Karmakharm Certified Instructor, NVIDIA Deep Learning Institute 1 DEEP LEARNING INSTITUTE DLI Mission Helping people solve challenging problems using AI and deep learning.
1
Twin Karmakharm
Certified Instructor, NVIDIA Deep Learning Institute
2
DLI Mission Helping people solve challenging problems using AI and deep learning.
engineers
robotics
deep neural networks
3 3
4
5 5
Many Deep Learning Tools
6
An open framework for deep learning developed by the Berkeley Vision and Learning Center (BVLC)
caffe.berkeleyvision.org http://github.com/BVLC/caffe
7 7
Protobuf model format
code
architecture and training parameters
name: “conv1” type: “Convolution” bottom: “data” top: “conv1” convolution_param { num_output: 20 kernel_size: 5 stride: 1 weight_filler { type: “xavier” } }
Deep Learning model definition
8
9 9
Process Data Configure DNN Visualization Monitor Progress
Interactive Deep Learning GPU Training System
10 10
Loss function (Validation) Loss function (Training) Accuracy
validation dataset
11
12
Deploy:
Dog Cat Honey badger
Errors
Dog Cat Raccoon
Dog Train:
13
Convolutional Neural Network
Conv Pool
Conv Pool
Conv Pool
Fully connected
CLASS PREDICTIONS CAR TRUCK DIGGER BACKGROUND
Pool Pool
1x1 Conv
IMAGES
Fully connected
14 14
Neural network training and inference
15
16 16
17
TRAINED NEURAL NETWORK
OPTIMIZED INFERENCE RUNTIME
developer.nvidia.com/tensorrt
18
CBR = Convolution, Bias and ReLU
developer.nvidia.com/tensorrt
Vertical Layer Fusion
19
CBR = Convolution, Bias and ReLU
developer.nvidia.com/tensorrt
Horizontal Layer Fusion (Layer Aggregation)
20 20
Supported layers
21 21
22 22
plan for computing the forward pass
Two Phases
Build Deploy File Model File Deploy Plan Output I/O Layers Max Batchsize Inputs Batch size
23 23
distribution
24
25 25
Imagenet dataset
multiple objects within the image and draw bounding boxes around them
detection using a large dataset of pedestrians in a variety of indoor and outdoor scenes
26 26
27
28
1. Navigate to: https://nvlabs.qwiklab.com 2. Login or create a new account Please use the email address used to register for session
29
3. Select the event specific In-Session Class in the upper left 4. Click the “Deep Learning Network Deployment” Class from the list
30
5. Click on the Select button to launch the lab environment
wait, lab Connection information will be shown
Assistants for help!
31
6. Click on the Start Lab button
32
You should see that the lab environment is “launching” towards the upper-right corner
33
7. Click on “here” to access your lab environment / Jupyter notebook
34
You should see your “Deep Learning Network Deployment” Jupyter notebook
35 35
Interface: Run
36
Instruction in Jupyter notebook will link you to DIGITS
37
enter a username to access DIGITS
username
letters
38
39
40 40
…for the chance to win an NVIDIA SHIELD TV. Check your email for a link.
TAKE SURVEY
Check your email for details to access more DLI training online.
ACCESS ONLINE LABS
Visit www.nvidia.com/dli for workshops in your area.
ATTEND WORKSHOP
Visit https://developer.nvidia.com/join for more.
JOIN DEVELOPER PROGRAM
41 41
42
www.nvidia.com/dli
Instructor: Twin Karmakharm
43
CONNECT
Connect with technology experts from NVIDIA and
LEARN
Gain insight and valuable hands-on training through hundreds of sessions and research posters.
DISCOVER
Discover the latest breakthroughs in fields such as autonomous vehicles, HPC, smart cities, VR, robotics, and more.
INNOVATE
Hear about disruptive innovations as startups and researchers present their work.
Join us at Europe’s premier conference on artificial intelligence. 9-11 October 2018 at the International Congress Centre, Munich.
USE CODE NVMDIERINGER TO SAVE 25% | REGISTER AT WWW.GPUTECHCONF.EU
Join the Conversation #GTC18
44
45 45
Can’t display Ipython Notebook?
46 46
Don’t know if cell is running??
You should see In[*] and not In[ ] or In[<some number>]. Solid grey circle in the top-right of the browser window If you only see #1 and not #2, then you need to try the following in order:
Press the stop button on the toolbar. Try again. Click Kernel -> Restart. Try again. Save the Notebook and refresh the page. Try again. End the lab from the qwikLABS page and start a new instance. All work will be lost. (Please let me know before you do this)
47 47
Reverse to some checkpoint