我跑PC仿真的时候:
rknn.config(channel_mean_value='0 0 0 1',
reorder_channel='0 1 2')
ret = rknn.init_runtime()
是正常的,跑上面那种连接板子的会报错:
--> Loading rknn model
done
I NPUTransfer: Starting NPU Transfer Client, Transfer version 2.1.0 (b5861e7@2020-11-23T11:50:36)
E RKNNAPI: rknn_init, msg_load_ack fail, ack = 1(ACK_FAIL), expect 0(ACK_SUCC)!
E RKNNAPI: ==============================================
E RKNNAPI: RKNN VERSION:
E RKNNAPI: API: 1.6.0 (79320de build: 2020-12-29 10:56:36)
E RKNNAPI: DRV: 1.5.2 (e67e5cb build: 2020-12-03 15:04:52)
E RKNNAPI: ==============================================
E Catch exception when init runtime!
E Traceback (most recent call last):
E File "rknn/api/rknn_base.py", line 844, 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_MODEL_INVALID
E Current device id is: 2020
E Devices connected:
E ['2020']
Init runtime environment failed