All Projects → 610265158 → Peppa_pig_face_engine

610265158 / Peppa_pig_face_engine

Licence: apache-2.0
A simple face detect and alignment method, which is easy and stable.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Peppa pig face engine

face-datasets
Some handy scripts for processing face datasets
Stars: ✭ 19 (-94.22%)
Mutual labels:  face-alignment
Face-alignment-Trees
This is the C++ implement of the paper: Face Detection, Pose Estimation, and Landmark Localization in the Wild
Stars: ✭ 17 (-94.83%)
Mutual labels:  face-alignment
iqiyi-vid-challenge
Code for IQIYI-VID(IQIYI Video Person Identification) Challenge Implemented in Python and MXNet
Stars: ✭ 45 (-86.32%)
Mutual labels:  face-alignment
Face-Recognition-FaceNet
A python script label faces in group photos using Facenet. 🎉
Stars: ✭ 21 (-93.62%)
Mutual labels:  face-alignment
SupervisedDescentMethod
No description or website provided.
Stars: ✭ 19 (-94.22%)
Mutual labels:  face-alignment
enhanced-ssh-mxnet
The MXNet Implementation of Enhanced SSH (ESSH) for Face Detection and Alignment
Stars: ✭ 54 (-83.59%)
Mutual labels:  face-alignment
Img2pose
The official PyTorch implementation of img2pose: Face Alignment and Detection via 6DoF, Face Pose Estimation - CVPR 2021
Stars: ✭ 247 (-24.92%)
Mutual labels:  face-alignment
3ddfa
The PyTorch improved version of TPAMI 2017 paper: Face Alignment in Full Pose Range: A 3D Total Solution.
Stars: ✭ 3,154 (+858.66%)
Mutual labels:  face-alignment
ECT-FaceAlignment
[TIFS 2018] Combining Data-driven and Model-driven Methods for Robust Facial Landmark Detection
Stars: ✭ 28 (-91.49%)
Mutual labels:  face-alignment
retinaface
RetinaFace: Deep Face Detection Library for Python
Stars: ✭ 242 (-26.44%)
Mutual labels:  face-alignment
deep alignment network pytorch
PyTorch Implementation of the Deep Alignment Network
Stars: ✭ 37 (-88.75%)
Mutual labels:  face-alignment
Face
I have published my face related codes in this repository
Stars: ✭ 53 (-83.89%)
Mutual labels:  face-alignment
FacialLandmark TF
Facial landmarks training by tensorflow. Use for face alignment and so on.
Stars: ✭ 22 (-93.31%)
Mutual labels:  face-alignment
SADRNet
[TIP 2021] SADRNet: Self-Aligned Dual Face Regression Networks for Robust 3D Dense Face Alignment and Reconstruction
Stars: ✭ 101 (-69.3%)
Mutual labels:  face-alignment
Flame Fitting
Example code for the FLAME 3D head model. The code demonstrates how to sample 3D heads from the model, fit the model to 3D keypoints and 3D scans.
Stars: ✭ 269 (-18.24%)
Mutual labels:  face-alignment
Awesome Face recognition
papers about Face Detection; Face Alignment; Face Recognition && Face Identification && Face Verification && Face Representation; Face Reconstruction; Face Tracking; Face Super-Resolution && Face Deblurring; Face Generation && Face Synthesis; Face Transfer; Face Anti-Spoofing; Face Retrieval;
Stars: ✭ 3,220 (+878.72%)
Mutual labels:  face-alignment
DeepVTB
🌌 OpenVTuber-虚拟アイドル共享计划 An application of real-time face and gaze analyzation via deep nerual networks.
Stars: ✭ 32 (-90.27%)
Mutual labels:  face-alignment
High Performance Face Recognition
🔥🔥Several High-Performance Models for Unconstrained/Large-Scale/Low-Shot Face Recognition🔥🔥
Stars: ✭ 309 (-6.08%)
Mutual labels:  face-alignment
Dest
🐼 One Millisecond Deformable Shape Tracking Library (DEST)
Stars: ✭ 276 (-16.11%)
Mutual labels:  face-alignment
Laser-Eye
Gaze Estimation via Deep Neural Networks
Stars: ✭ 79 (-75.99%)
Mutual labels:  face-alignment

Peppa_Pig_Face_Engine

introduction

It is a simple demo including face detection and face aligment, and some optimizations were made to make the result smooth.

CAUTION: this is the tensorflow2.0 branch, if you want to work on tf1, please switch to tf1 branch, it still works.

Purpose: I want to make a face analyzer including face detect and face alignment. Most of the face keypoints codes that opensourced are neither stable nor smooth, including some research papers. And the commercial sdk is pretty expensive. So, there is Peppa_Pig_Face_Engine.

I think it is pretty cool, see the demo:

click the gif to see the video: demo

and with face mask: face mask

requirment

  • tensorflow2.0 (tensorflow1 need to switch to tf1 branch )

  • opencv

  • python 3.6

  • easydict

  • flask

update

2020.4.28 A new detector based on centernet is trained, here is the link, but i don't know how to integrate it into this project, because it is a tf1 project. I am thinking about to rewrite the project to make it more usefull.

2020.2.4: add http server

useage

  1. download pretrained model, put them into ./model
  • detector

     Lightnet_0.5  including a tflite model, 
      (time cost: mac [email protected], tf2.0 15ms+, tflite 8ms+-,input shape 320x320, model size 560K)
    
  • keypoints

    shufflenetv2_0.75   including a tflite model, 
     (time cost: mac [email protected], tf2.0 5ms+, tflite 3.7ms+- model size 2.5M)
    

    the dir structure as :

       ./model
       ├── detector
       │   ├── saved_model.pb
       │   └── variables
       │       ├── variables.data-00000-of-00002
       │       ├── variables.data-00001-of-00002
       │       └── variables.index
       ├── keypoints
       │   ├── saved_model.pb
       │   └── variables
       │       ├── variables.data-00000-of-00002
       │       ├── variables.data-00001-of-00002
       │       └── variables.index
    
  1. run python demo.py --cam_id 0 use a camera
    or python demo.py --video test.mp4 detect for a video
    or python demo.py --img_dir ./test detect for images dir no track
    or python demo.py --video test.mp4 --mask True if u want a face mask

start a http server

  1. run python demo.py --web 1

  2. test by run python web_demo_test.py,

the result is a json, formate: [{ "bbox": [x1, y1, x2, y2], "landmark": [[x1, y1], [x2, y2],[x3,y3],[...]]}]

Train

The project is based on two of my other repos, and both tensorflow1 and tensorflow2 are supported. If you want to train with your own data, or you want to know the details about the models, click them.

TODO

  • [x] Transfer to tensorflow 2.0
  • [x] small model including tflite
  • [x] add http server demo
  • [ ] Add some GAN model to make it fun ing....
  • [ ] 3-d face algorithm
  • [ ] a mobile device version, it is on the way, i learn a lot about mobile device. **
  • [ ] switch to pytorch, HAHA... dont worry it wont happen.
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].