I follow all the steps to setup the environment, and make sure all python package work fine.
All the converter looks good, [snpe-caffe-to-dlc, snpe-caffe2-to-dlc, snpe-tensorflow-to-dlc]
But when I run this command, [snpe-onnx-to-dlc --help], it only show Segmentation fault (core dumped),
The SNPE version is 1.19.2, onnx version is 1.3.0.
Could you please help to check this?
Could you provide Docker Image for us to saving the setup environment time?
Thanks.
Best regards,
Use 1.18.0 and issue gone, please provide docker image to saving your clinet's time !!!
I have the same problem. I would like to try v1.18.0, but I can not find the download link. I want to tell you. Thank you.
I encounter the same issue using snpe-1.22.0
I had the same issue. My workaround solution is to downgrade onnx from 1.3.0 to 1.2.2. This might solve the issue.
Thanks,
Jihoon
I downgrad my onnx to 1.2.2, the same problem still occur (segmentation fault, core dumped)
my snpe is latest 1.22.0.212
Where can I download the earlier version of SNPE?
Hi,
Irrespective of SNPE version, the issue is been seen.
On debugging the core dump file generated on segmentation fault, we figured out that the error is because of missing folder "Object". Below are the details of the coredump.
jinka@jinka:~/git/SNPE/snpe-sdk$ gdb python2.7-dbg
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
This GDB was configured as "x86_64-linux-gnu".
Reading symbols from python2.7-dbg...done.
(gdb) run ./bin/x86_64-linux-clang/snpe-onnx-to-dlc --model_path models/bvlc_alexnet/bvlc_alexnet/model.onnx --dlc_path bvlc_alexnet_onnx.dlc
Starting program: /usr/bin/python2.7-dbg ./bin/x86_64-linux-clang/snpe-onnx-to-dlc --model_path models/bvlc_alexnet/bvlc_alexnet/model.onnx --dlc_path bvlc_alexnet_onnx.dlc
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5bdf482 in PyString_FromFormatV (format=0x7ffff5ce4f98 "expected string or Unicode object, %.200s found", vargs=0x7fffff7ff010)
at ../Objects/stringobject.c:169
169 ../Objects/stringobject.c: No such file or directory.
So where can I get these folder and files?
We face the same issue, snpe-onnx-to-dlc --help fails with segfault with the latest 1.24 and 1.23 versions of SNPE. Tried with ONNX 1.2.2, 1.3.1, 1.41 with no luck. Did anyone solve this?
SEGFAULT disappears when protobuf version is 2.5.0, but then ONNX(1.4.1) failed to be imported, presumably due to protobuf version mismatch. I've not yet figured out which versions combination works :(
same here with most recent 1.25
This is still occurring. Surely there is a fix somewhere.
I'm on 1.25.1.310
I've tried all versions of ONNX with protobuf 2.5.0, it doesn't work unfortunately.
I've also tried with protobuf 2.6.1, which is the latest before 3.0.0, but the segfault is still there for me (also 1.25.1.310)...
Perhaps a clue, but it doesn't seg fault when you run at the top level of the git folder. Still fails, but now with a Python error. (See my topic from May 16.)
I'm assuming you are talking of the $SNPE_ROOT folder, as I got a .zip file and not a cloned git... But that is the way I launched it before, nothing works but a segfault. At some point, I was able to see Python errors though. Debugging the segfault with @gesqdn-forum 's answer didn't show anything else than segfault as well.
At this point, I'm trying to debug the python code, see which import throws the segfaul... I'll update here if I find anything.
EDIT: finally made it work, but had to go through an additional conversion step... Caffe2. The following link, at the very bottom, shows how to export an ONNX model to Caffe2. https://github.com/onnx/tutorials/blob/master/tutorials/OnnxCaffe2Import...
I had to make a few modifications to my model and install some dependencies on my SNPE environment (python 2.7), but it finally worked.
Note: the tutorial in the following link is not very clear, but it expects the name of the ONNX/Caffe2 input node as the first argument of the --input_dim parameter... https://developer.qualcomm.com/sites/default/files/docs/snpe/model_conv_... .
Hi! Does anyone here still have 1.19 (or similar) downloaded? I am in need of the 1.19 snpe-tensorflow-to-dlc file used to convert TensorFlow models. If someone would be kind enough to share the link or PM me, that would be great appreciated. Email is [email protected] Thanks