我是一个深入学习和面部识别的新手。搜索后,我发现这个关于deeplearning的python包应用于称为OpenFace的人脸识别。从它的文档中,我认为它是建立在Torch之上的,用于神经网络计算。在Python中安装OpenFace时遇到的问题
我想在虚拟环境中安装的软件包,所以基本上这些都是我做的步骤:
- 酿造安装必需的系统要求:bash中,coreutils的,卷曲的findutils,OpenCV的,Python和助推蟒蛇
- 创建虚拟环境,并安装DLIB,numpy的,SciPy的,熊猫,scikit学习,scikit图像
- 克隆openface GitHub的仓库
安装火炬
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
- cd到克隆openface回购和运行
python setup.py install
然而,当我运行python:
>>>import openface
我得到:
Segmentation Fault: 11
我该如何解决这个问题?另外,有没有其他教程使用openface? 如何正确安装OpenFace?
我见过Python解释器? –
不,我可以导入opencv,但我无法导入dlib,导致分段错误。单独导入dlib仍然会导致seg故障。 – bninopaul
我认为segfault正在发生,因为你的系统有多个Python版本,并且dlib的C代码正在使用与运行时使用的Python版本不同的版本进行编译。 –