IT干货网

人脸识别(实验复现)

shasha 2022年03月07日 人工智能 190 0

英文原文地址:https://medium.com/@ageitgey/machine-learning-is-fun-part-4-modern-face-recognition-with-deep-learning-c3cffc121d78

中文翻译版地址:https://zhuanlan.zhihu.com/p/24567586

实验脚本:https://github.com/YuTingLiu/human_face_detection.git

实验环境

1.安装 dlib

https://github.com/davisking/dlib.git

对人脸识别的算法不了解,但是一些研究过的人说实现了非常经典的算法.这个包的封装也非常好,对于检测人脸方便.实验过程中发现,一些人脸无法识别,一些人脸无法对齐.

2.安装opencv与openface

使用opencv2.sh安装opencv2(不行,需要安装opencv_python)
由github安装openface

3.安装torch.

openface需要torch,或者说openface的模型使用torch训练
http://torch.ch/docs/getting-started.html

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

4.安装torch的package

下载:
nn : https://github.com/torch/nn.git
dnn : https://github.com/nicholas-leonard/dpnn.git
使用luarocks install命令进行安装
luarocks install nn-master/rocks/nn-scm-1.rockspec

luarocks install dpnn-master/rocks/dpnn-scm-1.rockspec

实验过程

1.dlib的一些问题

无法对齐


无法识别


2.程序流程

2.1 数据准备

2.1.1构建Will Ferrell和 Chad Smith的脸部训练集

google自行下载,附后

2.1.2 采访视频下载

chrome下载,使用opencv分割

2.2 程序构建

2.2.1 框架


2.2.2程序效果

由终端合成gif



评论关闭
IT干货网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!

SMP_WEIBO_2016 微博用户画像 可视化(未完成)