← Open Source
polarisZhao

PFLD-pytorch

PFLD pytorch Implementation.

Model DevelopmentArchitectureDomain-specific trainingPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
876
Stars
205
Forks
+0
This week
3
Contributors
Created 2019-08-25 · Updated 2026-09-11 · #12984 today
Top developers

polarisZhao/PFLD-pytorch is ranked 12,984 with 876 stars.

Same-category comparison

polarisZhao/PFLD-pytorch is ranked 12,984 among these 8 peers; lucidrains/mixture-of-experts is ranked 12,989.

Same-category comparison
NameRankMetrics
google/hdrnet12,968
Language:
Python
Stars:
877
Forks:
319
Description:
An implementation of 'Deep Bilateral Learning for Real-Time Image Enhancement', SIGGRAPH 2017.
EpistasisLab/pmlb12,973
Language:
Python
Stars:
876
Forks:
144
Description:
PMLB: A large, curated repository of benchmark datasets for evaluating supervised machine learning algorithms.
WooooDyy/AgentGym-RL12,975
Language:
Python
Stars:
876
Forks:
89
Description:
Code and implementations for the paper "AgentGym-RL: Training LLM Agents for Long-Horizon Decision Making through Multi-Turn Reinforcement Learning" by Zhiheng Xi et al.
brownvc/R3GAN12,976
Language:
Python
Stars:
876
Forks:
45
Description:
Code for NeurIPS 2024 paper - The GAN is dead; long live the GAN. A Modern Baseline GAN - by Huang et al.
lucidrains/mixture-of-experts12,989
Language:
Python
Stars:
875
Forks:
71
Description:
A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models.
sbi-dev/sbi12,990
Language:
Python
Stars:
875
Forks:
272
Description:
sbi is a Python package for simulation-based inference, designed to meet the needs of both researchers and practitioners. Whether you need fine-grained control or an easy-to-use interface, sbi has you covered.
allenai/XNOR-Net12,995
Language:
Lua
Stars:
874
Forks:
235
Description:
ImageNet classification using binary Convolutional Neural Networks.
jeffreyyihuang/two-stream-action-recognition12,998
Language:
Python
Stars:
874
Forks:
246
Description:
Using two stream architecture to implement a classic action recognition method on UCF101 dataset.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryArchitecture, Domain-specific training
Stars876
Forks205
Contributors3
Created date2019-08-25
Updated date2026-09-11
Stars in 1 day0
Stars in 7 days0
Rank12,984
Previous rank12,879
Rank change-105
7-day stars rank13,704
Previous 7-day stars rank13,717
7-day stars rank change13
Total stars rank12,367
Previous total stars rank12,348
Total stars rank change-19
CountryChina
README summary

PFLD-pytorch Implementation of PFLD A Practical Facial Landmark Detector by pytorch. Datasets **WFLW Dataset Download** ​ Wider Facial Landmarks in-the-wild (WFLW) is a new proposed face dataset. It contains 10000 faces (7500 for training and 2500 for testing) with 98 fully manual annotated landmarks. WFLW Training and Testing images [Google Drive] [Baidu Drive] 2. Unzip above two packages and put them on 4. training & testing training : use tensorboard, open a new terminal testing: 4. pytorch -> onnx -> ncnn **Pytorch

-> onnx** ~ **onnx -> ncnn** how to build : Now you can use **pfld-sim. reference: PFLD: A Practical Facial Landmark Detector Tensorflow Implementation:

Frequently asked questions

How many stars and forks are recorded?

polarisZhao/PFLD-pytorch has 876 stars and 205 forks.

What is the repository rank?

polarisZhao/PFLD-pytorch is ranked 12,984.

What language and category are recorded?

polarisZhao/PFLD-pytorch has 876 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

polarisZhao/PFLD-pytorch is compared with lucidrains/mixture-of-experts, ranked 12,989 with 875 stars.

README

PFLD-pytorch

Implementation of PFLD A Practical Facial Landmark Detector by pytorch.

1. install requirements

pip3 install -r requirements.txt

2. Datasets

  • WFLW Dataset Download

​ Wider Facial Landmarks in-the-wild (WFLW) is a new proposed face dataset. It contains 10000 faces (7500 for training and 2500 for testing) with 98 fully manual annotated landmarks.

  1. WFLW Training and Testing images [Google Drive] [Baidu Drive]
  2. WFLW Face Annotations
  3. Unzip above two packages and put them on ./data/WFLW/
  4. move Mirror98.txt to WFLW/WFLW_annotations
$ cd data 
$ python3 SetPreparation.py

3. training & testing

training :

$ python3 train.py

use tensorboard, open a new terminal

$ tensorboard  --logdir=./checkpoint/tensorboard/

testing:

$ python3 test.py

4. results:

5. pytorch -> onnx -> ncnn

Pytorch -> onnx

python3 pytorch2onnx.py

onnx -> ncnn

how to build :https://github.com/Tencent/ncnn/wiki/how-to-build

cd ncnn/build/tools/onnx
./onnx2ncnn pfld-sim.onnx pfld-sim.param pfld-sim.bin

Now you can use pfld-sim.param and pfld-sim.bin in ncnn:

ncnn::Net pfld;
pfld.load_param("path/to/pfld-sim.param");
pfld.load_model("path/to/pfld-sim.bin");

cv::Mat img = cv::imread(imagepath, 1);
ncnn::Mat in = ncnn::Mat::from_pixels_resize(img.data, ncnn::Mat::PIXEL_BGR, img.cols, img.rows, 112, 112);
const float norm_vals[3] = {1/255.f, 1/255.f, 1/255.f};
in.substract_mean_normalize(0, norm_vals);

ncnn::Extractor ex = pfld.create_extractor();
ex.input("input_1", in);
ncnn::Mat out;
ex.extract("415", out);

6. reference:

PFLD: A Practical Facial Landmark Detector https://arxiv.org/pdf/1902.10859.pdf

Tensorflow Implementation: https://github.com/guoqiangqi/PFLD

Nearby in the ranking
Similar items