peppa_pig_face_landmark

A simple face detect and alignment method, which is easy and stable.

https://github.com/610265158/peppa_pig_face_landmark

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.3%) to scientific vocabulary

Keywords

face-alignment face-keypoint face-mask facedetect keypoint pytorch
Last synced: 6 months ago · JSON representation ·

Repository

A simple face detect and alignment method, which is easy and stable.

Basic Info
  • Host: GitHub
  • Owner: 610265158
  • License: apache-2.0
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 71.7 MB
Statistics
  • Stars: 538
  • Watchers: 21
  • Forks: 115
  • Open Issues: 16
  • Releases: 2
Topics
face-alignment face-keypoint face-mask facedetect keypoint pytorch
Created over 6 years ago · Last pushed over 2 years ago
Metadata Files
Readme License Citation

README.md

PeppaPigFace_Engine

DOI

introduction

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

click the gif to see the video: demo

and with face mask: face mask

requirment

  • PyTorch
  • onnxruntime
  • opencv

model

1 face detector

yolov5-face

2 landmark detector

Simple keypoints detector.

| WFLW | NME | Flops(G) | Params(M) | Pose | Exp. | Ill. | Mu. | Occ. | Blur | pretrained | |-------------|----------|----------|-----------|------|------|------|------|------|------|-------------------------------------------------------------------------------------------------| | Student@128 | 4.80 | 0.35 | 3.25 | 8.53 | 5.00 | 4.61 | 4.81 | 5.80 | 5.36 | skps | | Teacher@128 | 4.17 | 1.38 | 11.53 | 7.14 | 4.32 | 4.01 | 4.03 | 4.98 | 4.68 | skps | | Student@256 | 4.35 | 1.39 | 3.25 | 7.53 | 4.52 | 4.16 | 4.21 | 5.34 | 4.93 | skps | | Teacher@256 | 3.95 | 5.53 | 11.53 | 7.00 | 4.00 | 3.81 | 3.78 | 4.85 | 4.54 | skps |

I will release new model when there is better one.

By default student@256 is used in this project

install

git clone https://github.com/610265158/Peppa_Pig_Face_Landmark python setup.py install

useage

```python

by code:

from Skps import FaceAna facer = FaceAna()

result= facer.run(image)

detect images, tracing is not used, add

facer.reset()

```

More details refer to demo.py

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

How to train

The codes are placed in folder TRAIN/face_landmark

Refer to TRAIN/face_landmark/README.md to train the model.

Owner

  • Name: Lz
  • Login: 610265158
  • Kind: user
  • Location: CN

I am looking for a job now, contact me if got any opportunity.

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Liang"
  given-names: "Zi"
  orcid: "https://orcid.org/0009-0008-8802-3835"
title: "Simple Keypoints"
version: 1.0.0
doi: 10.5281/zenodo.7894492 
date-released: 2023-5-4
url: "https://github.com/610265158/Peppa_Pig_Face_Landmark"

GitHub Events

Total
  • Issues event: 1
  • Watch event: 19
  • Fork event: 1
Last Year
  • Issues event: 1
  • Watch event: 19
  • Fork event: 1

Dependencies

requirements.txt pypi
  • easydict ==1.7
  • imageio ==2.4.1
  • matplotlib ==3.0.2
  • numpy ==1.14.0
  • opencv_python ==3.4.3.18
  • tensorflow ==2.0
setup.py pypi
  • easydict *
  • onnxruntime *