Giter Site home page Giter Site logo

briantxbai / vgg_face Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eglxiang/vgg_face

0.0 1.0 0.0 70 KB

This is a test script for the VGG_face deep model. It simply compares the correlation between two deeply learned features corresponding with two testing facial images needed to be verified.

Home Page: https://www.linkedin.com/pulse/give-shot-deep-face-recognition-xiang-xiang?trk=pulse_spock-articles

License: MIT License

Python 4.63% C++ 89.16% MATLAB 6.20%

vgg_face's Introduction

vgg_face

This is a test script for the VGG_face deep model. Please feel free to use it. We explicitly have not subtracted the mean face, which is verified to be better on YouTube Face dataset. It simply compares the correlation between two deeply learned features corresponding with two testing facial images needed to be verified.

Face recognition seems rising again. Google, Facebook and SenseTime have almost solved it on benchmarks such as Labelled Face in the Wild (LFW). Their face recognizer are known as FaceNet, DeepFace and FaceID, respectively. Andrew Zisserman's group from the University of Oxford released their deep face model called VGG Face Descriptor, which is claimed to be trained on millions of face images. Today I take it and give it a shot on the task of face verification - determining whether a pair of two face images are from the same person or not. I simply compare the correlation (or cosine-similarity) between two deeply learned features corresponding with the two testing facial images that needed to be verified. Below are some results on LFW. Does the similarity (the third column) really tell you if the left person and the right one are the same person?

The program uses CPU in default. If you want to try GPU mode, please simply comment the first line in src/Classifier.cpp

VGG pre-trained model and the Caffe protocol file can be downloaded from http://www.robots.ox.ac.uk/~vgg/software/vgg_face/src/vgg_face_caffe.tar.gz

Features are outputs of FC8 so they are 4096-dim.

========== Settings ============

Depending on the operating system, you may set link libraries and include headfiles in the following way.

/usr/lib64/libboost_system.so

/usr/local/lib/libopencv_highgui.so

/usr/local/lib/libopencv_core.so

/usr/local/lib/libopencv_imgproc.so

/usr/lib64/libglog.so

/usr/local/lib/libcaffe.so

/usr/local/lib/libopencv_imgcodecs.so

Linker:

/usr/local/lib

/usr/lib

Compiler:

/usr/local/include

http://stackoverflow.com/questions/33828582/vgg-face-descriptor-in-python-with-caffe

Most people argued if subtracting the mean face is a necessity. From my experiments, I would say no. You do not need to subtract a fake mean to the input images.

vgg_face's People

Contributors

eglxiang avatar jhuxiang avatar

Watchers

 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.