标题: RetinaFace mxnet模型转rknn报错 [打印本页] 作者: xlbjs 时间: 2020-7-24 14:30 标题: RetinaFace mxnet模型转rknn报错 使用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!