Toybrick

I meet RKNN_ERR_MODEL_INVALID

mellon

新手上路

积分
16
楼主
发表于 2020-2-25 12:44:07    查看: 9013|回复: 6 | [复制链接]    打印 | 显示全部楼层
本帖最后由 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.


回复

使用道具 举报

mellon

新手上路

积分
16
沙发
 楼主| 发表于 2020-2-27 11:01:46 | 显示全部楼层
jefferyzhang 发表于 2020-2-26 08:34
Thanks for your report. I have sent it to NPU team.
If there is any process, I will inform you in ti ...

Ok. i will do my best. plz Send me reply as soon as possible.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表