I am trying to convert mobilenet v1 ssd onnx model to dlc using snpe-onnx-dlc module on python 3.5 but it fails with the following error
ONNX to DLC conversion failing
Posted: Thu, 2020-08-13 02:24
Traceback (most recent call last):
File "/home/ashutosh/Downloads/snpe-1.40.0.2130/bin/x86_64-linux-clang/snpe-onnx-to-dlc", line 20, in <module>
from qti.aisw.converters import onnx as onnx_converter
File "/home/ashutosh/Downloads/snpe-1.40.0.2130/lib/python/qti/aisw/converters/onnx/__init__.py", line 8, in <module>
from .onnx_to_ir import OnnxConverter
File "/home/ashutosh/Downloads/snpe-1.40.0.2130/lib/python/qti/aisw/converters/onnx/onnx_to_ir.py", line 22, in <module>
from .util import *
File "/home/ashutosh/Downloads/snpe-1.40.0.2130/lib/python/qti/aisw/converters/onnx/util.py", line 25, in <module>
code_to_enum = {'i': onnx.AttributeProto.INT,
AttributeError: 'NoneType' object has no attribute 'AttributeProto'
Any help is appreciated!
Hi,
I am also facing a similar issue , is the issue fixed ?
Hello prabukumar,
Can you please specify the ONNX version you are using and also if possible, link to the model you're trying to convert.
Hi Arunraj ,
I am following the instructions provided in the tutorial from develope.qualcomm.com,
https://developer.qualcomm.com/sites/default/files/docs/snpe/tutorial_on...
The model being is used is VGG16.
Try installing onnx and onnx-simplifier to your python environment prior to running the onnx to dlc conversion script.
pip install onnx-simplifier
Dear customer,
Could you please help to share the conversion commands on SNPE? Regarding the SNPE converter, you can take the following commands as reference.
Do not try to add any input or output nodes to SNPE ONNX converter.
snpe-onnx-dlc --input-network.onnx
BR.
Wei