The code trains a network to find the dissimilarity between two images using CNN which can be used for facial recognition and detection. This is implemented using pytorch.
The trainig data should be in data folder and the data for testing in testing folder. I have trained the network using AT&T face dataset, which is easily available online.
More dataset -: https://www.microsoft.com/en-us/research/project/ms-celeb-1m-challenge-recognizing-one-million-celebrities-real-world/
https://drive.google.com/file/d/0B5MzpY9kBtDVZ2RpVDYwWmxoSUk - Link of a pretrained model for facial dissimilarity.
How to use a pre-trained model for our use case. Here are the steps.
Collect the images of all employees.
Align the faces using MTCNN (Multi-task Cascaded Convolutional Neural Networks), dlib or Opencv. These methods identify, detect and align the faces by making eyes and bottom lip appear in the same location on each image.
Use the pre-trained facenet model to represent (or embed) the faces of all employees on a 128-dimensional unit hyper sphere.
Store the embeddings with respective employee names on disc.
harsh-99/Facial_recognition
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This repository contains code for facial recognition using Siamese Network
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published