赞
踩
pip3 install -r xxx/packages/requirements_cp310-1.6.0.txt
pip3 install xxx/packages/rknn_toolkit2-1.6.0+81f21f4d-cp310-cp310-linux_x86_64.whl
(toolkit2_1.5) llh@YH-LONG:~$ python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from rknn.api import RKNN
>>>
模型转换
进行推理测试
板端推理 python yolov8.py --model_path …/model/yolov8.rknn --target rk3568 --img_show
PC端推理 可在examples目录下找到对应的模型测试文件,如…/examples/onnx/yolov5/test.py。在目录下可直接执行python test.py
板端推理前置步骤
adb shell
cd /userdata/rknn_yolov8_demo
export LD_LIBRARY_PATH=./lib
./rknn_yolov8_demo model/yolov8.rknn model/bus.jpg
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。