Reputation: 2769
I am new to deeplearning and face recognition. After searching, I found this python package about deeplearning applied to face recognition called OpenFace. From its documentation, I think it is build on top of Torch for the neural nets computation.
I want to install the package in a virtual environment, so basically these are steps I made:
Install Torch
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
git clone https://github.com/torch/distro.git torch --recursive
cd torch
./install.sh
source install/bin/torch-activate
luarocks install csvigo
luarocks install dpnn
luarocks install nn
python setup.py install
However when I run python:
>>>import openface
I get:
Segmentation Fault: 11
How do I fix this? Also, are there any other tutorials for using openface? How to properly install OpenFace?
Upvotes: 2
Views: 4762
Reputation: 38165
I installed dlib with pip for openface and had no problem importing it for Python 2.7:
[jalal@goku scratch]$ sudo /usr/bin/pip install dlib
[sudo] password for jalal:
Collecting dlib
Downloading dlib-19.7.0.tar.gz (4.0MB)
100% |████████████████████████████████| 4.0MB 347kB/s
Installing collected packages: dlib
▽
Running setup.py install for dlib ... done
Successfully installed dlib-19.7.0
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Upvotes: 0
Reputation: 940
As I posted in the comments, this segfault was caused by compiling dlib with one Python version and running it with another. This was resolved by manually installing dlib rather than using their pip package.
Upvotes: 3