Skip to content

GesilaA/deepsort_tensorrt

Repository files navigation

DeepSort_TensorRT

TensorRT真是太快啦,基于大佬实现的DeepSort,用TensorRT来做特征提取的部分。[慢更]

Install

[REQUIRE] TensorRT 7

[REQUIRE] OpenCV

下载本库和deepsort的pytorch库

git clone git@github.com:ZQPei/deep_sort_pytorch.git
git clone https://github.com/GesilaA/deepsort_tensorrt.git

配置好大佬的pytorch工程后,将exportOnnx.py复制到pytorch工程的项目目录下运行,将会生成deepsort.onnx。

把deepsort.onnx移到本工程的resources目录下。然后回到工程的根目录

mkdir build
cd build
cmake ..
make
./onnx2engine ../resources/deepsort.onnx ../resources/deepsort.engine

然后就可以运行demo测试了

./demo ../resources/deepsort.engine ../resources/track.txt

然后就可以把自己TensorRT的目标检测工程进行对接。附上大佬TensorRT目标检测的工程

git clone https://github.com/wang-xinyu/tensorrtx.git

注:视频文件太大了,所以只把检测结果保存成txt进行测试,因为图片全是黑的,所以demo只是demo,以实际使用为准哈。

About

This is a TensorRT based deepsort project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages