jefferyzhang 发表于 2020-5-26 08:29
1.3.2试过不?
jefferyzhang 发表于 2020-5-26 08:29
1.3.2试过不?
- rknn = RKNN(verbose=False)
- print("register_op:")
- rknn.register_op('./resize_area/ResizeArea.rknnop')
- print("end")
- '''
- rknn.load_tensorflow(tf_pb='./resize_area_test.pb',
- inputs=['input'],
- outputs=['resize_area_0'],
- input_size_list=[[32, 32, 3]])
- rknn.build(do_quantization=False)
- # rknn.export_rknn('./resize_area.rknn')
- '''
- print("load rknn mode:")
- rknn.load_rknn('./resize_area.rknn')
- print("load end")
- print("init_runtime:")
- rknn.init_runtime()
- print("end")
- img = cv2.imread('./dog_32x32.jpg')
- outs = rknn.inference(inputs=[img])
- out_img = outs[0].astype('uint8')
- out_img = np.reshape(out_img, (64, 64, 3))
- cv2.imwrite('./out.jpg', out_img)
复制代码
- I NPUTransfer: Starting NPU Transfer Client, Transfer version 1.9.8 (40e4a8a@2020-01-02T09:16:20)
- E RKNNAPI: rknn_init, recv(MsgLoadAck) fail, -9(ERROR_PIPE) != 368!
- E Catch exception when init runtime!
- E Traceback (most recent call last):
- E File "rknn/api/rknn_base.py", line 1067, in rknn.api.rknn_base.RKNNBase.init_runtime
- E File "rknn/api/rknn_runtime.py", line 326, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
- E Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
复制代码
jefferyzhang 发表于 2020-5-27 00:03
已经报给NPU Team了,等他们答复你
jefferyzhang 发表于 2020-5-27 00:03
已经报给NPU Team了,等他们答复你
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |