|
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
|
|