# CenterNet_TensorRT_CPP
**Repository Path**: cuglujun/CenterNet_TensorRT_CPP
## Basic Information
- **Project Name**: CenterNet_TensorRT_CPP
- **Description**: No description available
- **Primary Language**: C++
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-07-27
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
CenterNet_TensorRT_CPP
## update
> 2020.2.20 更新 bbox
> 2020.2.19 更新 可以build engine for DCNv2, webcam_demo 测试OK 速度有点慢 约500ms
## introduction
plan to finish basic TensorRT version of CenterNet working on **JetsonNano**
most of main code from [Cao](https://github.com/CaoWGG/TensorRT-CenterNet)
I change some to run on JetsonNano, there are still many places need to be enhanced.
still in process ….
## Environment
1. Nvidia Jetson Nano with CSI Camera
2. TensorRT 5.1.2.6
## onnx model
Download here [ctdet_coco_dla_2x.onnx](https://pan.baidu.com/s/10K8EU0uIo91wrdhze2xMZA) Baidu 提取码 3ahy
## Installation
1. git clone https://github.com/Stephenfang51/CenterNet_TensorRT_CPP
2. cd to the repo
3. follow below
```
mkdir build
cd build
cmake ..
make
```
## usage
firstly you should build engine from onnx
1. building Engine : `./buildEngine -i /path/to/xxxxxx.onnx - o /path/to/xxxxxx.engine`
2. webcam demo : `./webcam_demo -e /path/to/xxxx.engine -c true`
3. image demo : `./demo -e /path/to/xxxx.engine -i /path/to/xxxx.jpg`
4. video demo : still working on it....
## image demo result
