|
5#
楼主 |
发表于 2020-3-25 15:28:32
|
只看该作者
请问一下你说的试过没问题,是哪个模型没问题呢?我这边现在可以转换了,但推理错误,如果转换为硬件运行的模型,也会转换出错,我用的模型是这个:http://download.tensorflow.org/models/deeplabv3_pascal_trainval_2018_01_04.tar.gz如果方便的,请提供上面模型转换后可行的模型,谢谢
下面是转换模型出错log
D Compiling start...
D gcc -Wall -std=c++0x -I. -I/usr/local/lib/python3.6/dist-packages/rknn/simulator/include/ -I/usr/local/lib/python3.6/dist-packages/rknn/simulator/include/CL -I/usr/local/lib/python3.6/dist-packages/rknn/simulator/include/VX -I/usr/local/lib/python3.6/dist-packages/rknn/simulator/include/ovxlib -D__linux__ -DLINUX -O3 -c rknn_pre_process.c
D gcc -Wall -std=c++0x -I. -I/usr/local/lib/python3.6/dist-packages/rknn/simulator/include/ -I/usr/local/lib/python3.6/dist-packages/rknn/simulator/include/CL -I/usr/local/lib/python3.6/dist-packages/rknn/simulator/include/VX -I/usr/local/lib/python3.6/dist-packages/rknn/simulator/include/ovxlib -D__linux__ -DLINUX -O3 -c rknn_frozeninferencegraph.c
D /tmp/tmpjtx6z821/makefile.linux:40: recipe for target 'rknn_frozeninferencegraph.o' failed
D Compiling finished.
D Generate pre-compile model data start...
D Generate pre-compile model data finished.
E Generate nbg failed.
W ----------------Warning(261)----------------
E Catch exception when direct build RKNN model!
E Traceback (most recent call last):
E File "rknn/base/ovxconfiggenerator.py", line 178, 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 699, in rknn.api.rknn_base.RKNNBase.direct_build
E File "rknn/api/rknn_base.py", line 640, in rknn.api.rknn_base.RKNNBase._build
E File "rknn/base/ovxconfiggenerator.py", line 180, in rknn.base.ovxconfiggenerator.generate_vx_config_from_files
E File "/usr/local/lib/python3.6/dist-packages/rknn/base/RKNNlib/RKNNlog.py", line 327, in e
E raise ValueError(msg)
E ValueError: Generate nbg failed.
--> Build model failed!
|
|