[root@ATK-DLRV1126:/]# strings /usr/lib/librknn_runtime.so | grep version
rknn_get_sdk_version
pre_compile_version
optimization_level_version
op_version
I [%s:%d]custom op version: %d
E [%s:%d] rknn_query, info_len(%d) != sizeof(rknn_sdk_version)(%d)!
librknn_runtime version 1.7.5 (ccb93f1 build: 2023-07-18 10:56:29 base: 1131)
//int8 version
W [%s:%d]Unsupported evis version
E [%s:%d]unsupport kernel size:%d/dilation:%d/evis version:%d
.gnu.version
.gnu.version_r
使用的 rknntoolkit 版本:v1.7.5
运行例子如下:
(rknntk) hang@Hang-Lu:~/rkdnn/rknn-toolkit-1.7.5/examples/tflite/mobilenet_v1$ python test.py rv1126
Set target: rv1126
W rknn-toolkit version: 1.7.5
/home/hang/miniconda3/envs/rknntk/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/hang/miniconda3/envs/rknntk/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
...(省略)
--> Export RKNN model
done
--> Init runtime environment
adb: error: cannot bind listener: attempted to listen on unavailable socket type: localabstract:transfer_proxy
E Connect to Device Failure (-2)
E Catch exception when init runtime!
E Traceback (most recent call last):
E File "rknn/api/rknn_base.py", line 979, in rknn.api.rknn_base.RKNNBase.init_runtime
E File "rknn/api/rknn_runtime.py", line 171, in rknn.api.rknn_runtime.RKNNRuntime.__init__
E File "rknn/api/rknn_platform_utils.py", line 327, in rknn.api.rknn_platform_utils.start_ntp_or_adb
E Exception: Init runtime environment failed!
E Please feedback the detailed log file <log_feedback_to_the_rknn_toolkit_dev_team.log> to the RKNN Toolkit development team.
E You can also check github issues: https://github.com/rockchip-linux/rknn-toolkit/issues
E Current device id is: None
E Devices connected:
E ['20240311RV1126FD2G009C']
Init runtime environment failed
连接了一个rv1126设备,运行rknn-toolkit-1.7.5中的例子,提示 Init runtime environment failed
更新驱动
查看内核版本(version 6.4.6.5.351518)
查看 rknn_server 版本(v1.7.5)
查看librknn_runtime版本(v1.7.5)
使用的 rknntoolkit 版本:v1.7.5
运行例子如下:
使用 restart_rknn.sh 脚本重启了服务重新执行上面的脚本也是同样的错误