Toybrick

RetinaFace mxnet模型转rknn报错

xlbjs

新手上路

积分
40
发表于 2020-7-24 14:30:06    查看: 866|回复: 2 | [复制链接]    打印 | 显示全部楼层
使用RetinaFace预训练模型转rknn时报错,具体错误:
--> Building model
W The RKNN Model generated can not run on simulator when pre_compile is True.
W The target_platform is not set in config, using default target platform rk1808.
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
vnn_mxnet.c: In function ‘vnn_CreateMxnet’:
vnn_mxnet.c:2686:31: error: ‘vsi_nn_resize_param {aka struct _vsi_nn_resize_param}’ has no member named ‘align_corners’
     node[146]->nn_param.resize.align_corners = True;
                               ^
vnn_mxnet.c:2686:48: error: ‘True’ undeclared (first use in this function)
     node[146]->nn_param.resize.align_corners = True;
                                                ^
vnn_mxnet.c:2686:48: note: each undeclared identifier is reported only once for each function it appears in
vnn_mxnet.c:2930:31: error: ‘vsi_nn_resize_param {aka struct _vsi_nn_resize_param}’ has no member named ‘align_corners’
     node[159]->nn_param.resize.align_corners = True;
                               ^
make: *** [vnn_mxnet.o] Error 1
/bin/sh: 1: /tmp/tmpu6y9agnu/gen_nbg: not found
mv: 无法获取'/home/yhl/1808/mxnet/RetinaFace/*.nb' 的文件状态(stat): 没有那个文件或目录
mv: 无法获取'/home/yhl/1808/mxnet/RetinaFace/*.dat' 的文件状态(stat): 没有那个文件或目录
E Generate nbg failed.
W ----------------Warning(20)----------------
E Catch exception when building RKNN model!
E Traceback (most recent call last):
E   File "rknn/base/ovxconfiggenerator.py", line 182, in rknn.base.ovxconfiggenerator.generate_vx_config_from_files
E   File "rknn/base/RKNNlib/app/exporter/ovxlib_case/casegenerator.py", line 531, in rknn.base.RKNNlib.app.exporter.ovxlib_case.casegenerator.CaseGenerator.generate
E   File "rknn/base/RKNNlib/app/exporter/ovxlib_case/casegenerator.py", line 495, in rknn.base.RKNNlib.app.exporter.ovxlib_case.casegenerator.CaseGenerator._gen_special_case
E   File "rknn/base/RKNNlib/app/exporter/ovxlib_case/casegenerator.py", line 462, in rknn.base.RKNNlib.app.exporter.ovxlib_case.casegenerator.CaseGenerator._gen_nb_file
E AttributeError: 'CaseGenerator' object has no attribute 'nbg_graph_file_path'
E During handling of the above exception, another exception occurred:
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 833, in rknn.api.rknn_base.RKNNBase.build
E   File "rknn/api/rknn_base.py", line 688, in rknn.api.rknn_base.RKNNBase._build
E   File "rknn/base/ovxconfiggenerator.py", line 184, in rknn.base.ovxconfiggenerator.generate_vx_config_from_files
E   File "rknn/api/rknn_log.py", line 312, in rknn.api.rknn_log.RKNNLog.e
E ValueError: Generate nbg failed.
Build mxnet  failed!



模型使用RetinaFace提供的R50-0000.params、R50-symbol.json
rknn:rknn-toolkit-v1.3.2
github:https://github.com/deepinsight/insightface/tree/master/RetinaFace
回复

使用道具 举报

shi

新手上路

积分
26
发表于 2020-8-3 08:22:51 | 显示全部楼层
楼主你转成功了吗
回复

使用道具 举报

huyang

新手上路

积分
40
发表于 2020-8-26 15:58:15 | 显示全部楼层
同问 转成功了吗 若是可分享点经验
回复

使用道具 举报

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

本版积分规则

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


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