Giter Club home page Giter Club logo

face_verification_demo's Introduction

About

This project uses code from https://github.com/cyh24/Joint-Bayesian. Using LBP feature has a better performance than using CNN, because we only use LFW dataset to train the Joint-Bayesian model, I think this algorithm can't get good model when use a small dataset.

CNN

We use google net to train the model, the dataset is CASIA Webface, and we use Effective Face Frontalization in Unconstrained Images to do alignment, we used PLDA to do the experiment(It's performance is better than using Joint Bayesian in this code, however the PLDA algorithm is writen using Matlab). Here is our result using BLUFR protocol:

Acc = 0.9273

@ FAR = 0.1%: VR = 68.63%.

@ FAR = 1%: VR = 83.78%.

The performance is not so good, using better dataset will be helpful, we get 97% accuracy in LFW when we use a extended CASIA dataset, but I can't get these data and models now. I will try to train new model in the future.

Joint-Bayesian

According to the paper "Bayesian Face Revisited: A Joint Formulation", the repository realizes the algorithm of Joint Beyesian with Python and achieve almost the same result as the paper.

Prepare for Using

  1. Get the database (lbp_WDRef,id_WDRef,lbp_lfw,pairlist_lfw) Download from the Websit: http://home.ustc.edu.cn/~chendong/JointBayesian/
  2. Install the numpy & scipy
  3. Install the sklearn
  4. If you want to use CNN to extract features, please install pycaffe and train a model
  5. You need to change some path and filename in code, I think the code can explain itself.

Usage

cd src

python test_lfw.py

More information

You can get more information in my blog If you have any question, my email: [email protected]

face_verification_demo's People

Contributors

lufo816 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.