|
【技术讨论】
rknn文件在rv1126平台上运行报错
发表于 2022-1-19 22:37:58
浏览:5197
|
回复:7
打印
只看该作者
[复制链接]
楼主
win10下rknn_toolkit-1.6.0-cp36-cp36m-win_amd64运行example/pytorch/test.py出现两个问题
1. Init runtime environment报错找不到指定的模块,但adb能看到设备,报错如下
--> Export RKNN model
done
--> Init runtime environment
E Catch exception when init runtime!
E Traceback (most recent call last):
E File "rknn\api\rknn_base.py", line 815, in rknn.api.rknn_base.RKNNBase.init_runtime
E File "rknn\api\rknn_runtime.py", line 162, in rknn.api.rknn_runtime.RKNNRuntime.__init__
E File "rknn\api\rknn_runtime.py", line 227, in rknn.api.rknn_runtime.RKNNRuntime._load_library
E File "D:\Anaconda3\envs\rk\lib\ctypes\__init__.py", line 348, in __init__
E self._handle = _dlopen(self._name, mode)
E OSError: [WinError 126] 找不到指定的模块。
E Current device id is: cd819f60fdbe2abe
E Devices connected:
E []
Init runtime environment failed
2.resnet18输出的.rknn文件报错,push到板上报错如下
[root@RV1126_RV1109:/userdata/examples/rktest]# ls
pic.jpg resnet_18.rknn1
[root@RV1126_RV1109:/userdata/examples/rktest]# ./resnet_18.rknn ./pic.jpg
./resnet_18.rknn: line 1: syntax error: unexpected word (expecting ")") |
|