Forums - snpe-caffe-to-dlc gives "Error in 'python': free(): invalid pointer"

2 posts / 0 new
Last post
snpe-caffe-to-dlc gives "Error in 'python': free(): invalid pointer"
tlalaeo
Join Date: 18 Oct 18
Posts: 1
Posted: Wed, 2018-11-07 03:32

Hello. I'm trying to convert ResNet50 caffemodels to dlc formats.

When I command

snpe-caffe-to-dlc --caffe_txt ResNet-50-deploy.prototxt --caffe_bin ResNet-50-model.caffemodel --dlc resnet50.dlc

it gives me messages like:

*** Error in `python': free(): invalid pointer: 0x0000000002656a70 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f9a7c9dd7e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f9a7c9e637a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f9a7c9ea53c]
/usr/lib/x86_64-linux-gnu/libprotobuf.so.9(_ZN6google8protobuf8internal28DestroyDefaultRepeatedFieldsEv+0x1f)[0x7f9a5abb38af]
/usr/lib/x86_64-linux-gnu/libprotobuf.so.9(_ZN6google8protobuf23ShutdownProtobufLibraryEv+0x8b)[0x7f9a5abb2b3b]
/usr/lib/x86_64-linux-gnu/libmirprotobuf.so.3(+0x233b9)[0x7f9a307ee3b9]
/lib64/ld-linux-x86-64.so.2(+0x10de7)[0x7f9a7cf5dde7]
/lib/x86_64-linux-gnu/libc.so.6(+0x39ff8)[0x7f9a7c99fff8]
/lib/x86_64-linux-gnu/libc.so.6(+0x3a045)[0x7f9a7c9a0045]
python[0x51dc1f]
python[0x51b1b7]
python(PyErr_PrintEx+0x2d)[0x51aadd]
python[0x4309d5]
python(Py_Main+0x612)[0x493ae2]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f9a7c986830]
python(_start+0x29)[0x4933e9]
======= Memory map: ========
00400000-006de000 r-xp 00000000 08:01 25958388                           /usr/bin/python2.7
008dd000-008de000 r--p 002dd000 08:01 25958388                           /usr/bin/python2.7
008de000-00955000 rw-p 002de000 08:01 25958388                           /usr/bin/python2.7
00955000-00978000 rw-p 00000000 00:00 0 
02099000-0fffb000 rw-p 00000000 00:00 0                                  [heap]
10000000-10001000 rw-s 00000000 00:06 470                                /dev/nvidia0
10001000-10002000 rw-s 00000000 00:06 470                                /dev/nvidia0
(... and so on)

and makes an dlc file, but I'm not sure it is converted correctly.

This is same with the result of alexnet tutorial.

python $SNPE_ROOT/models/alexnet/scripts/setup_alexnet.py -a ~/tmpdir -d 

Is there anybody who can help me? My environment setting is

- SNPE-1.19.2

- caffe (git revision 99bd99795)

- python 2.7

- Ubuntu 16.04

 

Thank you.

  • Up0
  • Down0
gesqdn-forum
Join Date: 4 Nov 18
Posts: 184
Posted: Fri, 2019-05-10 00:29

Hi jye,

We have tried Alexnet on Ubuntu 16.04LTS  following the instructions from   SNPE Docs
Configurations are mentioned below which worked for us,
 
               SNPE 1.21.0
               NDK r11c
                BVLC/Caffe as mentioned in Setup Documents of SNPE.
                Python 2.7             
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.