GithubHelp home page GithubHelp logo

kaushi019 / facial-recognition-using-facenet-siamese-one-shot-learning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from msindev/facial-recognition-using-facenet-siamese-one-shot-learning

0.0 0.0 0.0 104.11 MB

Implementation of Facial Recognition System Using Facenet based on One Shot Learning Using Siamese Networks

Python 100.00%

facial-recognition-using-facenet-siamese-one-shot-learning's Introduction

Facial-Recognition-Using-FaceNet-Siamese-One-Shot-Learning

This program has been used to implement Facial Recognition using Siamese Network architecture. The implementation of the project is based on the research paper :

FaceNet: A Unified Embedding for Face Recognition and Clustering arXiv:1503.03832 by Florian Schroff, Dmitry Kalenichenko, James Philbin

Facenet implements concept of Triplet Loss function to minimize the distance between anchor and positive images, and increase the distance between anchor and negative images.

Prerequisites

h5py==2.8.0
Keras==2.2.4
tensorflow==1.13.0rc2
dlib==19.16.0
opencv_python==3.4.3.18
imutils==0.5.1
numpy==1.15.2
matplotlib==3.0.0
scipy==1.1.0

Install the packages using pip install -r requirements.txt

Usage

To use the facial recognition system, you need to have a database of images through which the model will calculate image embeddings and show the output vector. The images which are in the database are stored as .jpg files in the directory ./images.

To generate your own dataset and add more faces to the system, use the following procedure:

Sit in front of your webcam. Use the Image_Dataset_Generator.py script to save 50 images of your face. Use this command: python Image_Dataset_Generator.py to generate images which will be saved in images folder.

To use the facial recognition system, run the command on your terminal : python face_recognizer.py

References

  1. The code has been implemented using deeplearning.ai course Convolutional Networks Week 4 Assignment, which has the files fr_utils.py and inception_blocks_v2.py
  2. The keras implementation of the model is by Victor Sy Wang's implementation and was loaded using his code: https://github.com/iwantooxxoox/Keras-OpenFace.

facial-recognition-using-facenet-siamese-one-shot-learning's People

Contributors

dependabot[bot] avatar hanniballecter2409 avatar imrohan01 avatar msindev avatar rajrohit98 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.