Toybrick

模型运行在与 PC 相连的 RK3399Pro硬件平台上,报错

zefan7564

新手上路

积分
23
楼主
发表于 2020-7-15 11:08:08    查看: 7648|回复: 1 | [复制链接]    打印 | 只看该作者
code:
rknn = RKNN()
    ret  =rknn.load_caffe(model='./model/caffe/NL_FD_v4_det3.prototxt',proto='caffe',blobs='./model/caffe/NL_FD_v4_det3.caffemodel')
    rknn.config(channel_mean_value='127.5 127.5 127.5 128',reorder_channel='0 1 2',target_platform='rk3399pro',quantized_dtype='asymmetric_quantized-u8')
    ret = rknn.build(do_quantization=False, dataset='./image/det1_list_1080.txt',pre_compile=False)
    ret = rknn.export_rknn(export_path = './model/NL_FD_v4_det3_asy.rknn')
    ret = rknn.init_runtime(target='rk3399pro', device_id='0d4c475f1dedda47')
    if ret != 0:
        print('Init runtime environment failed')
        exit(ret)
    print('done')

报错信息:
W Skip blobs of conv6-1_16
W Skip blobs of conv6-2_16
W Skip blobs of conv6-1_24
W Skip blobs of conv6-2_24
error: device '0d4c475f1dedda47' not found
E Connect to Device Failure (-1)
E Catch exception when init runtime!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 1042, in rknn.api.rknn_base.RKNNBase.init_runtime
E   File "rknn/api/rknn_runtime.py", line 168, in rknn.api.rknn_runtime.RKNNRuntime.__init__
E   File "rknn/api/rknn_platform_utils.py", line 296, in rknn.api.rknn_platform_utils.start_ntp_or_adb
E Exception: Init runtime environment failed!
E Current device id is: 0d4c475f1dedda47
E Devices connected:
E Execute ntp_transfer_proxy devices failed, ret code: 1. /home/yuzf/venv/lib/python3.5/site-packages/rknn/3rdparty/platform-tools/ntp/linux-x86_64/npu_transfer_proxy: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/yuzf/venv/lib/python3.5/site-packages/rknn/3rdparty/platform-tools/ntp/linux-x86_64/npu_transfer_proxy)

Traceback (most recent call last):
  File "al_NL_FaceLib.py", line 28, in <module>
    ret = rknn.init_runtime(target='rk3399pro', device_id='0d4c475f1dedda47')
  File "/home/yuzf/venv/lib/python3.5/site-packages/rknn/api/rknn.py", line 378, in init_runtime
    adb_devices, ntb_devices = self.rknn_base.list_devices()
  File "rknn/api/rknn_base.py", line 1006, in rknn.api.rknn_base.RKNNBase.list_devices
  File "rknn/api/rknn_platform_utils.py", line 328, in rknn.api.rknn_platform_utils.get_ntb_devices
RuntimeError

已经通过micro USB 连接到 rk3399


回复

使用道具 举报

jefferyzhang

版主

积分
13580
沙发
发表于 2020-7-15 14:41:23 | 只看该作者
3399pro不支持计算棒模式。你直接在板子上跑下试试
回复

使用道具 举报

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

本版积分规则

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


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