Coder Social home page Coder Social logo

mdvdv / neuroface Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 171 KB

🧠 NeuroFace is a Python framework containing tools for detection, human face recognition, analysis of human facial expressions and gestures on video.

Home Page: https://github.com/mdvdv/neuroface

License: MIT License

Python 100.00%
emotion-analysis face-detection face-identification face-recognition mediapipe pytorch

neuroface's Introduction

Typing SVG


NeuroFace is a Python framework containing tools for human face detection, recognition, analysis of human facial expressions and gestures on video.

GitHub Repo Size GitHub Repo Stars GitHub Watchers GitHub Last Commit GitHub Top Language

Table of Contents

1. Environment

  • torch1.12.0: PyTorch models implementation and deployment.

  • torchvision0.13.0: Reading and preprocessing frames as PyTorch tensors.

  • mediapipe0.8.10.1: MediaPipe models implementation and deployment.

  • opencv-python4.6.0.66: Reading and preprocessing frames as NumPy arrays.

  • Pillow9.2.0: Reading and preprocessing frames as PIL Images.

  • av9.2.0: Binding Torchvision to FFmpeg to read streams.

  • gdown4.5.1: Downloading large files from Google Drive.

System requirements:

  • CUDA11.3: GPU compute access.

Quick dependency installation:

$ pip install -r requirements.txt

2. Installation

Cloning the repository into a project:

$ git clone https://github.com/mdvdv/neuroface.git

3. Supported Models

Model Name Training Dataset Backbone AP Metric Weights Paper
MTCNN WiderFace P-Net 0.946 P-Net (28 KB) PDF
R-Net 0.954 R-Net (394 KB)
O-Net 0.954 O-Net (1.5 MB)
RetinaFace MobileNet V1 0.914 RetinaFace (1.7 MB) PDF
MediaPipe Face - BlazeFace 0.9861 - PDF

Face recognition models use a multi-dimensional vector representation of a face. NeuroFace provides access to face vectorization directly using Inception-ResNet V1 model.

Model Name Training Dataset Backbone AP Metric Weights Paper
Inception-ResNet V1 CASIA-WebFace Inception 0.9905 CASIA-WebFace (110.5 MB) PDF
VGGFace2 Inception 0.9965 VGGFace2 (106.7 MB)

NeuroFace provides MediaPipe Face Mesh that estimates 478 3D face landmarks in real-time. Face detector is the same BlazeFace model used in MediaPipe Face Detection.

Model Name Backbone MAD Metric Paper
MediaPipe Face Mesh BlazeFace 0.396 PDF
Model Name Backbone MSE Metric Paper
MediaPipe Hands BlazePalm Light 11.83 PDF
Full 10.05
Model Name Training Dataset Backbone AP Metric Weights Paper
DAN AffectNet-8 ResNet 0.6209 AffectNet-8 (226 MB) PDF

4. Usage

Code execution examples are presented in the documentation section.

5. References

neuroface's People

Contributors

mdvdv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.