xieincz/Multithreaded-YOLOv5-ByteTrack
Multi-thread tracking of YOLOv5 and ByteTrack implemented by C++, accelerated by TensorRT. YOLOv5 和 ByteTrack 的多线程追踪 C++ 实现, 使用 TensorRT 进行推理加速
Multithreaded-YOLOv5-ByteTrack
Multi-thread tracking of YOLOv5 and ByteTrack implemented by C++, accelerated by TensorRT.
检测器采用的是 YOLOv5 (可以轻松替换成其他同类的检测器),追踪器采用的是 ByteTrack 。和其他同类项目不同的是加入了多线程处理以及用 C++和 TensorRT 加快推理速度。一个线程负责读取来自视频文件(可以轻松更改为摄像头)的帧,一个线程负责用 YOLOv5 得到检测框,一个线程用 ByteTrack 给各个检测框 reid ,还有一个线程负责将结果绘制到视频文件中。在多 CPU 核心(>=3 核)的设备上的效果比目前其他同类的项目要更快。而且还可以根据需要给各个线程设置 CPU 亲和性(将某线程绑定到某个 CPU 核心,该功能仅限于 Linux 平台)。
此外还利用 SWIG 包装了接口,方便在 python 中像调用一个库一样使用本项目。
TODO
- YOLOv8
Usage and demo
Click the button shown below to try this project in colab.
note: You can also upload the notebook in the colab folder of this project to the colab for running.
Acknowledgement
A large part of the code is borrowed from yolov5_deepsort_tensorrt, TensorRTx, YOLOv5 and ByteTrack. Thanks for their wonderful works.
Similar Projects
Discover other similar projects and AI models.
BoxMOT: Pluggable multi-object tracking in Python and C++ for axis-aligned and oriented boxes, now with Helm deployment for continuous camera tracking on Kubernetes.
《Pytorch实用教程》(第二版)无论是零基础入门,还是CV、NLP、LLM项目应用,或是进阶工程化部署落地,在这里都有。相信在本书的帮助下,读者将能够轻松掌握 PyTorch 的使用,成为一名优秀的深度学习工程师。
Turn any computer or edge device into a command center for your computer vision projects.
tensorrt for yolo series (YOLOv11,YOLOv10,YOLOv9,YOLOv8,YOLOv7,YOLOv6,YOLOX,YOLOv5), nms plugin support
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.