|
本帖最后由 mellon 于 2020-2-26 10:48 编辑
hello,
I convert Deeplab v3+ algorithm to rknn. rknn Build success, but in the rknn init process, I meet this error:
I [vnn_CreateRKNN:5249]Norm tensor initialize
I [vnn_CreateRKNN:5264]Const tensor initialize
I [vnn_CreateRKNN:5279]Virtual tensor initialize
I [vnn_CreateRKNN:5291]Connection initialize
I [vnn_CreateRKNN:5301]graph io initialize
D [setup_node:368]Setup node id[0] uid[100] op[VARIABLE]
D [print_tensor:136]in(0) : id[ 2] vtl[0] const[1] shape[ 1, 1, 1, 1 ] fmt[f16] qnt[NONE]
D [print_tensor:136]out(0): id[ 299] vtl[1] const[0] shape[ 1, 1, 1, 1 ] fmt[f16] qnt[NONE]
D [setup_node:368]Setup node id[1] uid[105] op[VARIABLE]
D [print_tensor:136]in(0) : id[ 3] vtl[0] const[1] shape[ 1, 1, 1, 1 ] fmt[f16] qnt[NONE]
D [print_tensor:136]out(0): id[ 300] vtl[1] const[0] shape[ 1, 1, 1, 1 ] fmt[f16] qnt[NONE]
D [setup_node:368]Setup node id[2] uid[111] op[VARIABLE]
D [print_tensor:136]in(0) : id[ 4] vtl[0] const[1] shape[ 1, 1, 3 ] fmt[f16] qnt[NONE]
D [print_tensor:136]out(0): id[ 301] vtl[1] const[0] shape[ 1, 1, 3 ] fmt[f16] qnt[NONE]
D [setup_node:368]Setup node id[3] uid[14] op[PERMUTE]
D [print_tensor:136]in(0) : id[ 1] vtl[0] const[0] shape[ 3, 224, 224, 1 ] fmt[f16] qnt[NONE]
D [print_tensor:136]out(0): id[ 302] vtl[1] const[0] shape[ 224, 224, 3, 1 ] fmt[f16] qnt[NONE]
D [setup_node:368]Setup node id[4] uid[11] op[PERMUTE]
D [print_tensor:136]in(0) : id[ 302] vtl[1] const[0] shape[ 224, 224, 3, 1 ] fmt[f16] qnt[NONE]
D [print_tensor:136]out(0): id[ 303] vtl[1] const[0] shape[ 3, 224, 224, 1 ] fmt[f16] qnt[NONE]
D [setup_node:368]Setup node id[5] uid[120] op[RESHAPE]
D [print_tensor:136]in(0) : id[ 303] vtl[1] const[0] shape[ 3, 224, 224, 1 ] fmt[f16] qnt[NONE]
D [print_tensor:136]out(0): id[ 304] vtl[1] const[0] shape[ 3, 224, 224 ] fmt[f16] qnt[NONE]
D [setup_node:368]Setup node id[6] uid[116] op[SUBTRACT]
E [op_check:98]Invalid broadcast for inputs[1] size[3]
E [setup_node:383]Check node[6] SUBTRACT fail
I [remove_client_ops:4942]remove_client_ops num=0
I [remove_client_ops:4953]remove_client_ops finish
Create RKNN model fail!
E Catch exception when init runtime!
E Traceback (most recent call last):
E File "rknn/api/rknn_base.py", line 988, in rknn.api.rknn_base.RKNNBase.init_runtime
E File "rknn/api/rknn_runtime.py", line 320, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
E Exception: RKNN init failed. error code: RKNN_ERR_MODEL_INVALID
Init runtime environment failed
How can i slove this problem? I used rknn-toolkit version 1.3.0, and tensorflow version is 1.14.0. python version is 3.6.
I convert this model. (https://github.com/tensorflow/mo ... /g3doc/model_zoo.md, xception65_coco_voc_trainval)
By any chance, rknn does not support sub operations?
Thank you.
|
|