ENCP / CNNdroid

Open Source Library for GPU-Accelerated Execution of Trained Deep Convolutional Neural Networks on Android
MIT License
539 stars 181 forks source link

SavePycaffeModelInMessagePack.py crashed #3

Closed liuyi999111 closed 7 years ago

liuyi999111 commented 8 years ago

When I convert caffe model files, It's crashed. There is some information: python(68083,0x7fffa53b73c0) malloc: *** malloc_zone_unregister() failed for 0x7fffa53ad000 Illegal instruction: 4 OS: macOs 10.12.1

latifisalar commented 7 years ago

Can you let me know which CNN you tried to convert?

liuyi999111 commented 7 years ago

My fellow give it to me. It used to detect key points in a face. caffmodle2cnndroid.zip I find it crash when execute this line import caffe.

mkaskov commented 7 years ago

_Make sure that Caffe is on the python path: Caffe installation path: cafferoot = '/home/user/caffe/'

Caffe must installed on your system and caffe_root is path to folder to your Caffe installation.

latifisalar commented 7 years ago

I successfully converted your Caffe model with the provided script. As Maxim also suggested the problem should be with your pycaffe or path variable setup.

liuyi999111 commented 7 years ago

the problem be with my pycaffe