[28167] Failed to execute script pegasus
Traceback (most recent call last):
File "pegasus.py", line 131, in
File "pegasus.py", line 112, in main
File "acuitylib/app/importer/commands.py", line 245, in execute
File "acuitylib/vsi_nn.py", line 171, in load_onnx
File "acuitylib/app/importer/import_onnx.py", line 108, in run
TypeError: object of type 'NoneType' has no len()
I don’t understand the convert tool very well for ONNX, can you provide an example of how to use it? I’m trying to convert a modified resnet-101 model.
Thank you for your reply Frank, I have another issue.
I’m trying to execute 2_export_case_code.sh from acuity-toolkit/demo/, and I think I’m missing some packages in my PC as I’m getting the following error:
gcc -Wall -std=c++0x -I. -I../bin/vcmdtools/vsimulator/include/ -I../bin/vcmdtools/vsimulator/include/CL -I../bin/vcmdtools/vsimulator/include/VX -I../bin/vcmdtools/vsimulator/include/ovxlib -I../bin/vcmdtools/vsimulator/include/jpeg -D__linux__ -DLINUX -O3 -c vnn_pre_process.c
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
vnn_pre_process.c:15:10: fatal error: vsi_nn_pub.h: No existe el archivo o el directorio
#include "vsi_nn_pub.h"
^~~~~~~~~~~~~~
compilation terminated.
/home/dasnano/Escritorio/khadas/makefile.linux:53: fallo en las instrucciones para el objetivo 'vnn_pre_process.o'
make: *** [vnn_pre_process.o] Error 1
E Fatal model compilation error: 512
W ----------------Error(1),Warning(0)----------------
Traceback (most recent call last):
File "pegasus.py", line 131, in <module>
File "pegasus.py", line 116, in main
File "acuitylib/app/exporter/commands.py", line 186, in execute
File "acuitylib/vsi_nn.py", line 658, in export_ovxlib
File "acuitylib/app/exporter/ovxlib_case/export_ovxlib.py", line 74, in run
File "acuitylib/app/exporter/ovxlib_case/casegenerator.py", line 695, in generate
File "acuitylib/app/exporter/ovxlib_case/casegenerator.py", line 654, in _gen_special_case
File "acuitylib/app/exporter/ovxlib_case/casegenerator.py", line 541, in _gen_nb_file
File "acuitylib/app/exporter/ovxlib_case/casegenerator.py", line 343, in _compile_linux
File "acuitylib/acuitylog.py", line 263, in e
acuitylib.acuityerror.AcuityError: ('Fatal model compilation error: 512', 'nbg_compile')
[5358] Failed to execute script pegasus
In the end I managed to get it to work by creating a docker using the Dockerfile provided in the SDK.
One more question. I need my model to work with float16 data type. Does this mean I have to skip quantization (1_quantize_model.sh) or is there a setting to quantize the model to work with float16 numbers?