Giter VIP home page Giter VIP logo

face-recognition-system's Introduction

Face Recognition System

  • Used MTCNN for face detection
  • FaceNet Model is used to create a face embedding for each detected face.
  • Developed a Linear Support Vector Machine for face classification

Pre-processing

  • Face detection using MTCNN
  • Detect face using and store it as dataset.npz
  • Create face-embedding using Facenet_Keras model for all the images from dataset.npz and store it in embeddings.npz

Running

  • Add your photos(>10) in a folder with your name and store it in dataset/train and dataset/val(Use different pictures , since this is used for testing)
  • Run facedetect.py and faceemebed.py to create face-embeddings and run classify to get the result.

Output

Screenshot

Accuracy

  • Next, the model is evaluated on the train and test dataset, showing perfect classification accuracy. This is not surprising given the size of the dataset and the power of the face detection and face recognition models used.
  • Dataset: train=103, test=29 Accuracy: train=100.000, test=100.000

Loss function

-A convolutional neural network architecture is proposed. For a loss function, FaceNet uses “triplet loss”. Triplet loss relies on minimizing the distance from positive examples, while maximizing the distance from negative examples.

Adam Optimizer

Adam optimizer is one of the most popular gradient descent optimization algorithms Adam algorithm first updates the exponential moving averages of the gradient(mt) and the squared gradient(vt) which is the estimates of the first and second moment.

face-recognition-system's People

Contributors

a-m-k-18 avatar rizkym84 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.