Giter Site home page Giter Site logo

atuljoshi1 / face-recognition-using-transfer-learning Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 4.0 1.52 MB

Face Recognition using Tensor Flow and FaceNet

Jupyter Notebook 86.69% Python 13.31%
deep-learning transfer-learning face-recognition facenet embeddings face-features

face-recognition-using-transfer-learning's Introduction

Face-Recognition-using-Transfer-Learning

Face Recognition using Tensor Flow and FaceNet.
Goal: To generate a model which recognises the faces, with images given as input.

To get face feature embeddings, we used FaceNet model. FaceNet is a one-shot model, that directly learns a mapping from face images to a compact Euclidean space where distances directly correspond to a measure of face similarity. We used embeddings from FaceNet to get features which are further used to predict the class representing face of a particular person.

PREPARING DATA

Training Data

Images of 6 persons including me (4 images each) were loaded using matplotlib and openCV.
Embedder from FaceNet is used to get the final feature vector.
Labels for the training data were given manually as an array with values 1,2,3,4,5,6 representing 6 different persons.

Testing Data

Testing Data consists of 7 images of persons . Features were extracted in the same manner from the images as training dataset.

Model

On the extracted feature vector, a multiclass logistic regression was applied to learn a classification model.

Prediction

In case the prediction probability is lesser than a given threshold, we say the image is of some unknown 'other' person than those 6 in training data, else a class number(1-6) is returned as output. The test data was applied on the model and a score of 1.0 (i.e 100%) was observed on the test data.

Justification of Accuracy

The FaceNet is trained on a huge dataset of face images, with lot of variation. When we applied it on our small dataset(24 images for 6 persons), all the face features were embedded perfectly. When we applied the multiclass classification on those features, it learnt the variation perfectly resulting in 100% accuracy .

face-recognition-using-transfer-learning's People

Contributors

atuljoshi1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.