Giter VIP home page Giter VIP logo

soumik12345 / nearest-celebrity-face Goto Github PK

View Code? Open in Web Editor NEW
30.0 3.0 6.0 26.18 MB

Tensorflow Implementation of FaceNet: A Unified Embedding for Face Recognition and Clustering to find the celebrity whose face matches the closest to yours.

Home Page: https://soumik12345.github.io/geekyrakshit-blog/computervision/deeplearning/facenet/inception/keras/nearestcelebrityface/python/tensorflow/2019/08/07/nearest-celebrity-face.html

Python 1.06% Jupyter Notebook 98.94%
machine-learning machinelearning deep-learning deep-neural-networks deeplearning inception inceptionv2 inception-resnet-v2 face-recognition face

nearest-celebrity-face's Introduction

Nearest-Celebrity-Face

HitCount

PWC PWC PWC PWC PWC

Overview

Implementation of FaceNet: A Unified Embedding for Face Recognition and Clustering to find the celebrity whose face matches the closest to yours. The input face is encoded with a pretrained inception model into a vector and then its geometric distance is calculated with the encoded vectors of all the images present in the dataset and the image with the least distance is selected.

Article Link: https://soumik12345.github.io/geekyrakshit-blog/computervision/deeplearning/facenet/inception/keras/nearestcelebrityface/python/tensorflow/2019/08/07/nearest-celebrity-face.html

Installation

  1. Create a new conda environment using conda create --name nearest_celeb_face
  2. Activate the activate nearest_celeb_face if you are on Windows and source activate nearest_celeb_face if you are on Linux
  3. Clone the repository using git clone https://github.com/soumik12345/Nearest-Celebrity-Face
  4. Enter the root directory using cd Nearest-Celebrity-Face
  5. Install the required dependencies using pip install -r requirements.txt

Usage

The TestCases folder contains two folders Actual that contains full sized images of individuals and Preprocessed containing the faces manually cropped out of the full sized images. Any number of testcases can be added provided that one image each is present in the Actual and Preprocessed folders with the exact same filename and the preprocessed image should have the face manually cropped out for best performance. Refer to the already cropped images for further detail on how to crop. Once the tescases are setup, run python main.py or python3 main.py to run the program.

Sample Outputs

Citation

@article{1503.03832,
  Author = {Florian Schroff and Dmitry Kalenichenko and James Philbin},
  Title = {FaceNet: A Unified Embedding for Face Recognition and Clustering},
  Year = {2015},
  Eprint = {arXiv:1503.03832},
  Doi = {10.1109/CVPR.2015.7298682},
}

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.