All Projects → sankovalev → Look4Face

sankovalev / Look4Face

Licence: other
Demo of Face Recognition web service

Programming Languages

HTML
75241 projects
python
139335 projects - #7 most used programming language
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Look4Face

Multi-Face-Comparison
This repo is meant for backend API for face comparision and computer vision. It is built on python flask framework
Stars: ✭ 20 (-13.04%)
Mutual labels:  face, face-recognition, face-detection
Awesome Face
😎 face releated algorithm, dataset and paper
Stars: ✭ 739 (+3113.04%)
Mutual labels:  face, face-recognition, face-detection
Imagedetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.
Stars: ✭ 286 (+1143.48%)
Mutual labels:  face, face-recognition, face-detection
Facenet Pytorch
Pretrained Pytorch face detection (MTCNN) and facial recognition (InceptionResnet) models
Stars: ✭ 2,564 (+11047.83%)
Mutual labels:  face-recognition, face-detection, resnet
face
[deprecated] 👽 Face Recognition package for Laravel
Stars: ✭ 37 (+60.87%)
Mutual labels:  face, face-recognition, face-detection
Opencv Face Filters
Snapchat-like Face Filters in OpenCV
Stars: ✭ 51 (+121.74%)
Mutual labels:  image-recognition, face-recognition, face-detection
Mobileface
A face recognition solution on mobile device.
Stars: ✭ 669 (+2808.7%)
Mutual labels:  face, face-recognition, face-detection
Contactless-Attendance-System
✨ A Contactless Attendance System where your face is identified for Attendance.
Stars: ✭ 20 (-13.04%)
Mutual labels:  image-recognition, face-recognition, face-detection
Lookatme
VideoView that plays video only when 👀 are open and 👦 is detected with various other features
Stars: ✭ 161 (+600%)
Mutual labels:  face, face-recognition, face-detection
Face Recognition.js
Simple Node.js package for robust face detection and face recognition. JavaScript and TypeScript API.
Stars: ✭ 1,768 (+7586.96%)
Mutual labels:  face, face-recognition, face-detection
Facecropper
✂️ Crop faces, inside of your image, with iOS 11 Vision api.
Stars: ✭ 479 (+1982.61%)
Mutual labels:  face, face-recognition, face-detection
FaceIDLight
A lightweight face-recognition toolbox and pipeline based on tensorflow-lite
Stars: ✭ 17 (-26.09%)
Mutual labels:  face, face-recognition, face-detection
Human Detection And Tracking
Human-detection-and-Tracking
Stars: ✭ 753 (+3173.91%)
Mutual labels:  face, face-recognition, face-detection
Dockerface
Face detection using deep learning.
Stars: ✭ 173 (+652.17%)
Mutual labels:  face, face-recognition, face-detection
timeline
Timeline - A photo organizer
Stars: ✭ 39 (+69.57%)
Mutual labels:  face, face-recognition, face-detection
tryonface
Simple video-based eyewear virtual try on
Stars: ✭ 57 (+147.83%)
Mutual labels:  face-recognition, face-detection
bnk48-face-recognition
Facial Recognition Web App using React.js and face-api.js
Stars: ✭ 41 (+78.26%)
Mutual labels:  face-recognition, face-detection
ARFaceFilter
Javascript/WebGL lightweight face tracking library designed for augmented reality webcam filters. Features : multiple faces detection, rotation, mouth opening. Various integration examples are provided (Three.js, Babylon.js, FaceSwap, Canvas2D, CSS3D...).
Stars: ✭ 72 (+213.04%)
Mutual labels:  face, face-detection
Face-Recognition-using-Raspberry-Pi
A small project which does face detection using OpenCV library.
Stars: ✭ 48 (+108.7%)
Mutual labels:  face-recognition, face-detection
deepvisualminer
Deep visual mining for your photos and videos using YOLOv2 deep convolutional neural network based object detector and traditional face recognition algorithms
Stars: ✭ 21 (-8.7%)
Mutual labels:  face-recognition, face-detection

Look4Face

Demo of Face Recognition web service.


One face

Briefly

  • The web wrapper is implemented using Django 2.2.
  • LFW is used as a main dataset.
  • PyTorch for working with neural networks.
  • Faiss for ANN search + vector quantization.
  • ResNet50 pretrained on MS1M-Arcface.
  • For Linux and Mac OS.

Multiple faces


Easy using with Docker [recommended]

  1. Build image from Dockerfile
$ docker build -t l4fimage .
  1. Run container as daemon and expose 8000 port
$ docker run -d --name look4face -p 8000:8000 l4fimage

Installation

If you have CUDA installed, all calculations will be performed on the GPU, otherwise - on the CPU.

  1. Clone this repository:
$ git clone https://github.com/sankovalev/Look4Face.git
  1. Load the default backbone weights and the lfw dataset:
  • put Backbone.pth into 'backbone' folder
  • unpack dataset.zip and replace an empty 'media/media_root/dataset' folder You may change paths and filenames in Look4Face/Look4Face/settings.py
  1. Create virtualenv and activate it:
$ virtualenv -p python3 Look4Face
$ cd Look4Face
$ source bin/activate
  1. Make sure that you are using python3 & pip3 from virtual environment:
$ which python3
$ which pip3
  1. Install all requirements:
$ pip3 install -r requirements.txt
  1. Start web server
$ cd Look4Face
$ python3 manage.py runserver
  1. Open 127.0.0.1:8000 with browser.

Useful links

Repo Link
face.evoLVe.PyTorch https://github.com/ZhaoJ9014/face.evoLVe.PyTorch
facenet_pytorch https://github.com/liorshk/facenet_pytorch
arcface-pytorch https://github.com/ronghuaiyang/arcface-pytorch
insightface https://github.com/deepinsight/insightface
sudo docker build -t l4fimage .

How to use with other data

I strongly recommend to use the face.evoLVe.PyTorch repository for train your own models.

  1. Put your dataset to Look4Face/dataset with structure:
  Look4Face/dataset/your_db/
                      -> id1/
                          -> filename_1.jpg
                          -> ...
                      -> id2/
                          -> filename_1.jpg
                          -> ...
                      -> ...
                          -> ...
                          -> ...

and set variable in Look4Face/Look4Face/settings.py:

DATASET_FOLDER = 'your_db'
  1. Similarly, put your Faiss index and meta information for labels (dict with pairs id:PersonName) to the same folder, set variables:
DATASET_INDEX = 'your_index.bin'
DATASET_LABELS = 'your_labels.pkl'
  1. Update Backbone.pth if you need:
  Look4Face/backbone/
                     -> your_backbone.pth

and set variable in Look4Face/Look4Face/settings.py:

BACKBONE_FILE = 'your_backbone.pth'

Todos

  • Write notification if there are no faces on photo.
  • Write tutorial about using own dataset.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].