This repository contains contains the the code and configuration files required to deploy CenterNet models video analytics using DeepStream SDK 6.0.
Please refer to Install.md for installation.
pip install -r requirements.txt
- Rich is great progress bar tool
cd apps/centernet
python onnx2trt.py \
--load_model models/multi_pose_dla34_coco_3x.onnx \
--save_model models/multi_pose_dla34_coco_3x_b4_512_fp16.plan \
--batch_size 4 \
--fp16
- Download multi_pose_dla34_coco_3x.onnx
cd apps/centernet/lib && make
- Reference : NVIDIA-AI-IOT
To Run deepstream centernet:
python apps/centernet/deepstream_centernet.py \
--video_file file:///test1.mp4\ file:///test2.mp4 \
--batch_size 4 \
--save_folder result
result format(json):
detection_result = {
"stream_0": {
"frame_index": [
{"bbox": [x1, y1, x2, y2], "score": 0.xx},
...
]
}
}
- CenterNet: https://github.com/xingyizhou/CenterNet
- deepstream_triton_model_deploy: https://github.com/NVIDIA-AI-IOT/deepstream_triton_model_deploy
- deepstream_python_apps: https://github.com/NVIDIA-AI-IOT/deepstream_python_apps
- mmcv: https://github.com/open-mmlab/mmcv