【OpenFace】
来源:互联网 发布:广州多迪网络靠谱吗 编辑:程序博客网 时间:2024/05/18 01:10
OpenFace:
http://cmusatyalab.github.io/openface/
一、什么是Openface?
Openface是一个基于深度神经网络的开源人脸识别系统。该系统基于谷歌的文章FaceNet: A Unified Embedding for Face Recognition and Clustering。Openface是卡内基梅隆大学的 Brandon Amos主导的。
官方地址:http://cmusatyalab.github.io/openface/
代码:https://github.com/cmusatyalab/openface
二、Openface环境搭建
系统:Ubuntu 14.04 64位桌面操作系统
参考:http://cmusatyalab.github.io/openface/setup/
1、Ubuntu切换root用户
此处不详述,如果要用普通用户,请自行测试。
参考文章:
http://blog.csdn.net/itas109/article/details/50679251
2、安装前准备工作
安装必要的程序,可以用下面的批处理,也可以一个一个的进行安装。
3、安装必要的库
注意:
a.如果出现某一个安装失败的情况,可以一个一个的安装
b.提高pip安装速度
可以更换pip镜像加快下载速度
建立./pip/pip.conf,输入以下内容(或者其他可用镜像):
c.报错:SSLError: The read operation timed out
可以用下列指令将延时加长
4、安装Torch
a.安装依赖
b.安装
c.安装依赖
luarocks install $NAME, where $NAME
is as listed below.
dpnn
nn
csvigo
cunn (使用CUDA)
fblualib (仅为了训练DNN)
torchx (仅为了训练DNN)
命令行,按照需要安装:
d.验证是否安装依赖成功
用th命令验证
注意:
a.gitclone更新网络老中断
Git submodule update --init –recursive
或者torch目录下的
Update.sh
建议用Update.sh解决
b.错误:
Cloning into'extra/luaffifb'...
remote:Counting objects: 918, done.
error: RPCfailed; result=56, HTTP code = 200| 0 bytes/s
fatal: Theremote end hung up unexpectedly
fatal: earlyEOF
fatal:index-pack failed
Clone of 'https://github.com/facebook/luaffifb' intosubmodule path 'extra/luaffifb' failed
解决:
5、安装opencv
OpenCV版本为2.4.11,下载地址:https://github.com/Itseez/opencv/archive/2.4.11.zip
编译参考:http://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html
a.指令下载:
b.解压:
c.编译:
d.验证
import cv2
6、安装dlib
dlib v18.16下载地址:https://github.com/davisking/dlib/releases/download/v18.16/dlib-18.16.tar.bz2
a.安装编译
b.确保
在a中最后一条命令中,确保路径在默认的Python路径,可以在Python解释器里面用sys.path查找
For the final command, make sure the directory is in your default Python path, which can be found withsys.path
in a python interpreter.
c.验证
7、Git获取openface
a.下载Openface
b.在Openface根目录执行
python2一定要确保dlib和OpenCV安装成功
c.获取模型
8、运行demo
运行demo1:
./demos/compare.pyimages/examples/{lennon*,clapton*}
运行demo2:
./demos/classifier.py infermodels/openface/celeb-classifier.nn4.small2.v1.pkl ./images/examples/carell.jpg
运行demo3:
./demos/web/start-servers.sh
9、demo1可用浏览器
可用浏览器:
360浏览器极速模式
火狐浏览器
搜狗浏览器高速模式
不可用浏览器:
Chrome谷歌浏览器(可能与浏览器更新有关系,getUserMedia())
IE览器
- 【OpenFace】
- OpenFace
- 【OpenFace】
- openface安装
- CMU OpenFace
- 又一个OpenFace...
- QT+openface做刷脸机
- OpenFace做人脸识别
- Openface初次安装配置
- dlib, OpenFace and face_recognition
- 人脸识别openface
- 【小白】配置openface
- OpenFace自建CNN模型
- Openface训练分类器
- openface在liunx下配置
- Ubuntu16.04下openface安装
- 记录搭建openface的路
- Openface在Liunx下配置成功运行:
- Intellij IDEA Tomcat,提示“Unable to ping server at localhost:1099”
- svn使用过程小记
- 逆向输出链表
- C++11 新特性 学习笔记(1)
- linux中的分段和分页
- 【OpenFace】
- hdu3642-Get The Treasury 线段树+扫描线+离散化 求三维体积并
- 在Mac OS上搭建Python的开发环境
- SpringMvc学习笔记(一)配置
- JavaWeb项目的开发步骤
- 记一次java socket学习(简单实用多线程,实现多对多群聊)
- pip install
- 【Android】音效配置文件 audio_effects.conf
- java / java web学习线路图 最重要!最基础!!