yahoo / open_nsfw

Not Suitable for Work (NSFW) classification using deep neural network Caffe models.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmentation fault when running classify_nsfw.py

carial opened this issue · comments

My machine is Macbook Pro with Mac OS X (High Sierra, 10.13.3). I installed caffe and pycaffe. When I ran the following at command line, I got "Segmentation fault: 11". Python version is 2.7.15.

LD_LIBRARY_PATH=/temp/caffe/distribute/lib python ./classify_nsfw.py --model_def nsfw_model/deploy.prototxt --pretrained_model nsfw_model/resnet_50_1by2_nsfw.caffemodel /temp/image.jpg

Could you help to see what's going wrong? Thanks.