This Repos contains how to run CenterNet model using TensorRT.
The Pytorch implementation is xingyizhou/CenterNet .
Convert pytorch to onnx and tensorrt model to run on a Jetson AGX Xavier.
Support to infer an image.
Support to infer multi images simultaneously.
Please use torch>=1.6.0 + onnx==1.8.0 + TensorRT >=6.0 to run the code
networks
code is network
demo
code runs tensorrt implementation on Jetson AGX Xavier
├── networks
├── utils
├── models
├── demo
│ ├── centernet_inference.py
| ├── centernet_inference_batch.py
| ├── trt_inference.py
| ├── trt_function.py
│ └── torch_onnx_tensorrt.py
- convert CenterNet pytorch model to onnx
- convert CenterNet onnx model to tensorrt
- pre-process image
- run inference against input using tensorrt engine
- post process output (forward pass)
- apply nms thresholding on candidate boxes
- visualize results
- demo.py
python torch_onnx_tensorrt.py
python demo.py