美文网首页
4.无坑系列:安装OpenFace

4.无坑系列:安装OpenFace

作者: 年少如枫 | 来源:发表于2018-12-18 16:51 被阅读0次

    OpenFace

            OpenFace是一个基于深度神经网络的开源的人脸识别系统,由卡耐基梅隆大学开发实现。

    相关文献:FaceNet: A Unified Embedding for Face Recognition and Clustering,CVPR,2015.

            人脸动作编码系统(FACS)是一种根据面部表情对人脸运动进行分类的系统。单个面部肌肉的运动是由FACS编码的,它来自于面部外观的细微的瞬间变化。使用FACS可以编码几乎任何解剖学上可能的面部表情,将其解构成产生表情的特定动作单元(AU)。这是一种常见的标准用来客观地描述面部表情。


    安装

    已有环境:

    Ubuntu 16.04+Python3.6.5+TensorFlow1.8.0+Keras+dlib+git+pytorch 0.3.1+torchvision

    部署步骤:

    1. OpenCV

    $ sudo apt-get install libopencv-dev

    $ sudo apt-get install python-opencv

    2.下载openface源码

    $ git clone https://github.com/cmusatyalab/openface.git

    安装依赖的python库

    $ cd openface

    $ sudo pip install -r requirements.txt

    3.安装Torch

    $ git clone https://github.com/torch/distro.git ~/torch --recursive

    $ cd torch

    $ bash install-deps

    $ ./install.sh

    $ source ~/.bashrc

    4.OpenFace中用到了Lua语言,还需要安装Lua库

    $ sudo apt-get install luarocks

    用指令th来验证是否安装成功

    5.编译OpenFace源码

    $ python setup.py build

    $ sudo python setup.py install

    6.验证,未报错即安装成功

    $ import cv2

    $ import dlib

    $ import openface

    7.下载预训练模型

    $ cd openface

    $ ./models/get-models.sh

    验证成功!

    相关文章

      网友评论

          本文标题:4.无坑系列:安装OpenFace

          本文链接:https://www.haomeiwen.com/subject/tlylkqtx.html