This repository is for my YouTube video series here, about optimizing deep learning model using TensorRT. We demonstrate optimizing LeNet-like model and YOLOv3 model, and get 3.7x and 1.5x faster for the former and the latter, respectively, compared to the original models. For the details and how to run the code, see the video below.
- Optimizing Tensorflow Model to TensorRT
- Visualizing Before and After TensorRT Optimization
- Optimizing Keras Model to TensorRT
- Train Keras Model Using Your Own Dataset
- Restore and Use Stored Keras Model to Perform Inference
- Optimizing YOLOv3 using TensorRT
- Another YOLOv3 Detection Result (Native Tensorflow vs TensorRT optimized)
- TensorRT: follow the tutorial here for Ubuntu dekstop or here for Jetson devices, to install tensorRT
- Tensorflow 1.12 (Dekstop) and Tensorflow 1.11 (Jetson TX2)
- OpenCV 3.4.5
- Pillow 5.2.0
- Numpy 1.15.2
- Matplotlib 3.0.0
Dekstop PC
- OS: Ubuntu 16.04 - 64bit
- GPU: GeForce 1060 6Gb
- Driver version: 384.130
- RAM: 16Gb
- CUDA: 9.0
- CuDNN: 7
- TensorRT: 4.1.2
- Python: 64-bit, version 3.5
Jetson TX2
- OS: Ubuntu 16.04 - 64bit
- GPU (with RAM shared): 8Gb
- Driver version: Given along flashing with Jetpack 3.3
- CUDA: 9.0
- CuDNN: 7
- TensorRT: 4.1.3
- Python: 64-bit, version 3.5
Download (subset of) MNIST dataset here, extract and put in folder dataset
.
Download here, extract and put in folder model/YOLOv3