计算棒模式rknn初始化错误
adb是可以检测到设备,但是rknn初始化失败;使用rknn可视化工具连接设备进行性能评估
--> Load RKNN model succeed
--> Init runtime environment
D target set by user is: rv1126
D Starting ntp or adb, target is RV1126, host is None
I Device not found in ntb device list.
D Start adb...
D Connect to Device success!
W Flag perf_debug has been set, it will affect the performance of inference!
E Catch exception when init runtime!
E Traceback (most recent call last):
E File "rknn/api/rknn_base.py", line 859, in rknn.api.rknn_base.RKNNBase.init_runtime
E File "rknn/api/rknn_runtime.py", line 340, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
E Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
E Current device id is: a80fb177793c883d
E Devices connected:
--> Init runtime environment failed
请问有什么方法可以成功? 确保设备有没有跑 rknn_server 本帖最后由 Yeelearn 于 2021-9-9 10:23 编辑
板蓝根 发表于 2021-9-9 10:02
确保设备有没有跑 rknn_server
后台程序是有跑起来,不知道错误原因;
620 root 20 0111204 4632 3708 S 1.7 0.6 0:29.77 rknn_serv+
34 root 20 0 0 0 0 I 1.0 0.0 0:18.35 kworker/1+
837 root 20 0 6412 2420 2080 R 1.0 0.3 0:01.18 top
70 root -51 0 0 0 0 S 0.7 0.0 0:09.08 irq/35-ro+
1 root 20 0 30832 6556 5132 S 0.0 0.9 0:02.50 systemd
板子默认是支持adb计算棒模式吗 Yeelearn 发表于 2021-9-9 10:22
后台程序是有跑起来,不知道错误原因;
620 root 20 0111204 4632 3708 S 1.7 0.6...
什么固件 我在最新的固件上测试,没有问题。
demo:rknn-toolkit/examples/caffe/mobilenet_v2
rknn-toolkit version: 1.6.1
print:
--> Init runtime environment
I NPUTransfer: Starting NPU Transfer Client, Transfer version 2.1.0 (b5861e7@2020-11-23T11:50:36)
D RKNNAPI: ==============================================
D RKNNAPI: RKNN VERSION:
D RKNNAPI: API: 1.6.1 (f78b668 build: 2021-05-17 16:29:58)
D RKNNAPI: DRV: 1.6.0 (159d2d3 build: 2021-01-12 17:29:40)
D RKNNAPI: ==============================================
done
--> Running model
mobilenet_v2
-----TOP 5-----
: 0.71923828125
: 0.035552978515625
: 0.03277587890625
: 0.03021240234375
: 0.023681640625
done
--> Evaluate model performance
W When performing performance evaluation, inputs can be set to None to use fake inputs.
========================================================================
Performance
========================================================================
Total Time(us): 3511
FPS: 284.82
========================================================================
diff:
(vir36) $ git diff -- ./
diff --git a/examples/caffe/mobilenet_v2/test.py b/examples/caffe/mobilenet_v2/test.py
old mode 100644
new mode 100755
index ba9ae91..325955d
--- a/examples/caffe/mobilenet_v2/test.py
+++ b/examples/caffe/mobilenet_v2/test.py
@@ -28,7 +28,7 @@ if __name__ == '__main__':
# Set model config
print('--> Config model')
- rknn.config(mean_values=[], std_values=[], reorder_channel='2 1 0')
+ rknn.config(mean_values=[], std_values=[], reorder_channel='2 1 0',target_platform=['rv1126'])
print('done')
# Load caffe model
@@ -62,7 +62,7 @@ if __name__ == '__main__':
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
print('--> Init runtime environment')
- ret = rknn.init_runtime()
+ ret = rknn.init_runtime(target='rv1126')
if ret != 0:
print('Init runtime environment failed')
exit(ret)
板蓝根 发表于 2021-9-9 14:12
什么固件
AIO-RV1126-JD4_IPC_2021_0720_1205
debian10_2021_0429_1902
固件更新的方法安装 Yeelearn 发表于 2021-9-9 14:55
AIO-RV1126-JD4_IPC_2021_0720_1205
debian10_2021_0429_1902
不在debian10 上验证可以吗“? 板蓝根 发表于 2021-9-9 16:13
不在debian10 上验证可以吗“?
是的,AIO-RV1126-JD4_IPC_2021_0720_1205上计算棒模式可以正常使用,按照文档升级固件后相同操作不能用,请问debian10考虑更新吗? debian10 是纯净板的除了必要依赖没有多余的功能,也没有考虑此应用场景,暂时不支持。 板蓝根 发表于 2021-9-9 19:49
debian10 是纯净板的除了必要依赖没有多余的功能,也没有考虑此应用场景,暂时不支持。
请问旧版本的固件是否需要短接底板上某个引脚才能开启adb功能?如果是的话请告知,感谢!
页:
[1]
2