View Code? Open in Web Editor
NEW
This project forked from leafqycc/rknn-multi-threaded
A simple demo of yolov5s running on rk3588/3588s using Python (about 72 frames). / 一个使用Python在rk3588/3588s上运行的yolov5s简单demo(大约72帧/s)。
License: Apache License 2.0
Shell 12.27%
Python 87.73%
rknn-multi-threaded's Introduction
- 将仓库拉取至本地, 并将Releases中的演示视频放于项目根目录下, 运行main.py查看演示示例
- 切换至root用户运行performance.sh可以进行定频操作(约等于开启性能模式)
- 运行rkcat.sh可以查看当前温度与NPU占用
- 修改main.py下的modelPath为你自己的模型所在路径
- 修改main.py下的cap为你想要运行的视频/摄像头
- 修改main.py下的TPEs为你想要的线程数, 具体可参考下表
- 修改func.py为你自己需要的推理函数, 具体可查看myFunc函数
模型\线程数 |
1 |
2 |
3 |
4 |
5 |
6 |
yolov5s |
27.4491 |
49.0747 |
65.3673 |
63.3204 |
71.8407 |
72.0590 |
- 多线程下CPU, NPU占用较高, 核心温度相应增高, 请做好散热。推荐开1, 2, 3线程, 实测小铜片散热下运行三分钟温度约为56°, 64°, 69°
rknn-multi-threaded's People
Contributors