ONNX and TensorRT demo for lightNet-TRT
demo video is MOT16-14
- Pytorch
- NumPy
- ONNX
- onnxsim
- ONNXRuntime
- OpenCV
- NumPy
- TensorRT
- PyCUDA
- OpenCV
- NumPy
- Download cfg file and weights file from lightNet-TRT
- convert weights to onnx model by following script.
python convert2onnx.py lightNet-BDD100K-det-semaseg-1280x960.cfg \
lightNet-BDD100K-det-semaseg-1280x960.weights \
lightNet-BDD100K-det-semaseg-1280x960.onnx
source convert2trt.bash lightNet-BDD100K-det-semaseg-1280x960.onnx \
lightNet-BDD100K-det-semaseg-1280x960.engine
python demo_onnx.py --onnx_model_path lightNet-BDD100K-det-semaseg-1280x960.onnx \
--video_path {video or webcam path}
python demo_trt.py --engine_path lightNet-BDD100K-det-semaseg-1280x960.engine \
--video_path {video or webcam path}