Toybrick

计算棒运行官网的mobilenet_v1示例报错

actionchen

新手上路

积分
13
楼主
发表于 2023-1-12 10:01:19    查看: 4805|回复: 3 | [复制链接]    打印 | 只看该作者
本帖最后由 actionchen 于 2023-1-12 10:10 编辑

arm环境,看报错是识别到计算棒序列号了的,但是又报RKNN_ERR_DEVICE_UNAVAILABLE,各位有遇到这个情况吗?
计算棒版本:Last login: Wed Feb 20 16:22:04 2019 from 192.168.180.1
[toybrick@rk1808 ~]$ rpm -qa | grep rknn
rknn-1.7.1-0.rk1808.fc28.aarch64
rknn-api-1.7.1-0.rk1808.fc28.aarch64
rknn-server-1.7.1-0.rk1808.fc28.aarch64
[toybrick@rk1808 ~]$


actionchen@actionchen:~/rknn/demo/mobilenet_v1$ python3 ./test_inference.py
/home/actionchen/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:523: 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/actionchen/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:524: 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_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/actionchen/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:525: 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_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/actionchen/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:526: 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_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/actionchen/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:527: 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_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/actionchen/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:532: 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_resource = np.dtype([("resource", np.ubyte, 1)])
/home/actionchen/.pyenv/versions/3.6.9/lib/python3.6/site-packages/onnx_tf/common/__init__.py:87: UserWarning: FrontendHandler.get_outputs_names is deprecated. It will be removed in future release.. Use node.outputs instead.
warnings.warn(message)
--> Init runtime environment
E RKNNAPI: rknn_init,  driver open fail!  ret = -12(ERROR_NOT_SUPPORTED)!
E Catch exception when init runtime!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 788, in rknn.api.rknn_base.RKNNBase.init_runtime
E   File "rknn/api/rknn_runtime.py", line 303, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
E Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
E Current device id is: None
E Devices connected:
E ['TS018084211200ABD']
Init runtime environment failed


回复

使用道具 举报

actionchen

新手上路

积分
13
沙发
 楼主| 发表于 2023-1-12 10:33:42 | 只看该作者
重新刷了flashtool_1.5.2.tgz后,
[toybrick@rk1808 ~]$ rpm -qa | grep rknn
rknn-api-1.4.1-0.rk1808.fc28.aarch64
rknn-server-1.4.1-0.rk1808.fc28.aarch64
rknn-1.4.1-0.rk1808.fc28.aarch64
计算棒降到1.4.1的api也不行。官网这个demo现在还能跑不 ?
回复

使用道具 举报

actionchen

新手上路

积分
13
板凳
 楼主| 发表于 2023-1-13 21:37:39 | 只看该作者
已解决,没升级本地rknn。
回复

使用道具 举报

kwcha333

禁止发言

积分
22
地板
发表于 2023-10-17 15:05:45 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表