Giter Club home page Giter Club logo

face_recognition's Introduction

人脸识别

使用李子青团队的webface人脸数据集,根据汤晓欧团队的DeepID网络,通过Caffe训练出模型参数,经过LFW二分类得到人脸识别准确率。

人脸数据集

李子青团队的webface

图像预处理

对包含人脸的图像进行人脸框识别,人脸对齐和人脸剪裁。

原理

  • 人脸框识别
  • 人脸对齐
  • 人脸剪裁

实现

caffe训练

根据DeepID的网络使用caffe训练得到模型参数。

原理

  • 对原始数据分离训练集和测试集
  • 转换为caffe可以处理的lmdb格式
  • 根据设定的Net网络和Solver配置文件进行训练
  • 得到训练的模型

实现

  • 修改DeepID.py中demo(num)方法中的人脸对齐后的文件夹以及最后一行的中训练的人数(1-10575)。

  • 执行以下代码

python DeepID.py

人脸识别检测

检验训练好的模型,得到LFW的人脸准确率。

原理

实现

  • 下载lfwcrop_color.zip

  • 修改DeepIDTest.py中demo_test方法中caffepath,lfwpath等相关路径,以及最后一行的中训练的人数与所用模型的迭代次数。

  • 在caffe_path(一般为~/caffe-master)下,执行以下代码

python DeepIDTest.py

参考论文

  1. deepID 《Deep learning face representation from predicting 10,000 classes》

  2. deepID2 《Deep Learning Face Representation by Joint Identification-Verification》

  3. deepID2+ 《Deeply Learned Attributes for Crowded Scene Understanding", IEEE Conf. on Computer Vision and Pattern Recognition, June 2015 (Oral)》

  4. deepID3 《Face Recognition with Very Deep Neural Networks》

face_recognition's People

Contributors

hqli avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.