← Open Source
JDAI-CV

FaceX-Zoo

A PyTorch Toolbox for Face Recognition.

Model DevelopmentDomain-specific trainingTraining toolkitsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
2.00k
Stars
431
Forks
+-1
This week
11
Contributors
Created 2021-01-13 · Updated 2026-10-13 · #9117 today
Top developers
wang21junAberHuXJX777

JDAI-CV/FaceX-Zoo is ranked 9,117 with 2,000 stars.

Same-category comparison

JDAI-CV/FaceX-Zoo is ranked 9,117 among these 8 peers; clementchadebec/benchmark_VAE is ranked 9,115.

Same-category comparison
NameRankMetrics
divelab/DIG9,104
Language:
Python
Stars:
2,010
Forks:
288
Description:
A library for graph deep learning research.
open-mmlab/mmgeneration9,107
Language:
Python
Stars:
2,009
Forks:
230
Description:
MMGeneration is a powerful toolkit for generative models, based on PyTorch and MMCV.
NVlabs/edm9,112
Language:
Python
Stars:
2,003
Forks:
213
Description:
Elucidating the Design Space of Diffusion-Based Generative Models (EDM).
clementchadebec/benchmark_VAE9,115
Language:
Python
Stars:
2,001
Forks:
178
Description:
Unifying Variational Autoencoder (VAE) implementations in Pytorch (NeurIPS 2022).
haitongli/knowledge-distillation-pytorch9,120
Language:
Python
Stars:
1,999
Forks:
350
Description:
A PyTorch implementation for exploring deep and shallow knowledge distillation (KD) experiments with flexibility.
apple-aiml-research/ml-cvnets9,127
Language:
Python
Stars:
1,995
Forks:
257
Description:
CVNets: A library for training computer vision networks.
logpai/logparser9,129
Language:
Python
Stars:
1,995
Forks:
578
Description:
A machine learning toolkit for log parsing [ICSE'19, DSN'16].
lucidrains/titans-pytorch9,131
Language:
Python
Stars:
1,993
Forks:
210
Description:
Unofficial implementation of Titans, SOTA memory for transformers, in Pytorch.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryDomain-specific training, Training toolkits
Stars2,000
Forks431
Contributors11
Created date2021-01-13
Updated date2026-10-13
Stars in 1 day0
Stars in 7 days-1
Rank9,117
Previous rank9,160
Rank change43
7-day stars rank16,981
Previous 7-day stars rank12,247
7-day stars rank change-4,734
Total stars rank6,344
Previous total stars rank6,336
Total stars rank change-8
CountryChina
README summary

FaceX-Zoo FaceX-Zoo is a PyTorch toolbox for face recognition. It provides a training module with various supervisory heads and backbones towards state-of-the-art face recognition, as well as a standardized evaluation module which enables to evaluate the models in most of the popular benchmarks just by editing a simple configuration. Also, a simple yet fully functional face SDK is provided for the validation and primary application of the trained models. Rather than including as many as

possible of the prior techniques, we enable FaceX-Zoo to easilyupgrade and extend along with the development of face related domains. Please refer to the technical report for more detailed information about this project. About the name: "Face" - this repo is mainly for face recognition. "X" - we also aim to provide something beyond face recognition, e. "Zoo" - there include a lot of algorithms and models in this repo. 2021] Swin Transformer is supported now! We obtain a quite promising result

of 98. 17 in MegaFace rank1 protocol with Swin-S. For more results, pretrained models and logs please refer to 3. For training face recognition model with Swin Transformer, please refer to swin_training. Note that the input size is 224\*224 but not 112\*112 and we use AdamW+CosineLRScheduler to optimize it instead of SGD+MultiStepLR. 2021] We provide a Dockfile to buid the docker image of this project. 2021] RepVGG has been added to the backbones for

face recognition, the performance of RepVGG_A0, B0, B1 can be found in 3. 2021] A method for facial expression recognition named DMUE has been accepted by CVPR2021, and all codes have been released here. 2021] We evaluate some knowledge distillation methods on face recognition task, results and codes can be found in face_lightning module. 2021] Tools to convert a trained model to onnx format and the provided sdk format can be found in model_convertor. 2021] IJB-C

1:1 protocol has been added to the evaluation module. 2021] ResNeSt and ReXNet have been added to the backbones, MagFace has been added to the heads. 2021] Distributed training and mixed precision training by apex is supported. Please check distributed_training and train_amp. 2021] We commit the initial version of FaceX-Zoo. md in training_mode, currently support conventional training and semi-siamese training. md in test_protocol, currently support LFW, CPLFW, CALFW, RFW, AgeDB30, IJB-C, MegaFace

and MegaFace-mask. md in face_sdk, currently support face detection, face alignment and face recognition. License FaceX-Zoo is released under the Apache License, Version 2. Acknowledgements This repo is mainly inspired by InsightFace, InsightFace_Pytorch, face. We thank the authors a lot for their valuable efforts. Citation Please consider citing our paper in your publications if the project helps your research. If you have any questions, please contact with Jun Wang (wangjun492@jd.

Frequently asked questions

How many stars and forks are recorded?

JDAI-CV/FaceX-Zoo has 2,000 stars and 431 forks.

What is the repository rank?

JDAI-CV/FaceX-Zoo is ranked 9,117.

What language and category are recorded?

JDAI-CV/FaceX-Zoo has 2,000 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

JDAI-CV/FaceX-Zoo is compared with clementchadebec/benchmark_VAE, ranked 9,115 with 2,001 stars.

README

FaceX-Zoo

FaceX-Zoo is a PyTorch toolbox for face recognition. It provides a training module with various supervisory heads and backbones towards state-of-the-art face recognition, as well as a standardized evaluation module which enables to evaluate the models in most of the popular benchmarks just by editing a simple configuration. Also, a simple yet fully functional face SDK is provided for the validation and primary application of the trained models. Rather than including as many as possible of the prior techniques, we enable FaceX-Zoo to easilyupgrade and extend along with the development of face related domains. Please refer to the technical report for more detailed information about this project.

About the name:

  • "Face" - this repo is mainly for face recognition.
  • "X" - we also aim to provide something beyond face recognition, e.g. face parsing, face lightning.
  • "Zoo" - there include a lot of algorithms and models in this repo.

What's New

  • [Oct. 2021] Swin Transformer is supported now! We obtain a quite promising result of 98.17 in MegaFace rank1 protocol with Swin-S. For more results, pretrained models and logs please refer to 3.1 Experiments of SOTA backbones. For training face recognition model with Swin Transformer, please refer to swin_training. Note that the input size is 224*224 but not 112*112 and we use AdamW+CosineLRScheduler to optimize it instead of SGD+MultiStepLR.
  • [Sep. 2021] We provide a Dockfile to buid the docker image of this project.
  • [Aug. 2021] RepVGG has been added to the backbones for face recognition, the performance of RepVGG_A0, B0, B1 can be found in 3.1 Experiments of SOTA backbones.
  • [Jul. 2021] A method for facial expression recognition named DMUE has been accepted by CVPR2021, and all codes have been released here.
  • [Jun. 2021] We evaluate some knowledge distillation methods on face recognition task, results and codes can be found in face_lightning module.
  • [May. 2021] Tools to convert a trained model to onnx format and the provided sdk format can be found in model_convertor.
  • [Apr. 2021] IJB-C 1:1 protocol has been added to the evaluation module.
  • [Mar. 2021] ResNeSt and ReXNet have been added to the backbones, MagFace has been added to the heads.
  • [Feb. 2021] Distributed training and mixed precision training by apex is supported. Please check distributed_training and train_amp.py
  • [Jan. 2021] We commit the initial version of FaceX-Zoo.

Requirements

  • python >= 3.7.1
  • pytorch >= 1.1.0
  • torchvision >= 0.3.0

Model Training

See README.md in training_mode, currently support conventional training and semi-siamese training.

Model Evaluation

See README.md in test_protocol, currently support LFW, CPLFW, CALFW, RFW, AgeDB30, IJB-C, MegaFace and MegaFace-mask.

Face SDK

See README.md in face_sdk, currently support face detection, face alignment and face recognition.

Face Mask Adding

See README.md in FMA-3D.

License

FaceX-Zoo is released under the Apache License, Version 2.0.

Acknowledgements

This repo is mainly inspired by InsightFace, InsightFace_Pytorch, face.evoLVe. We thank the authors a lot for their valuable efforts.

Citation

Please consider citing our paper in your publications if the project helps your research. BibTeX reference is as follows.

@inproceedings{wang2021facex,
  author = {Jun Wang, Yinglu Liu, Yibo Hu, Hailin Shi and Tao Mei},
  title = {FaceX-Zoo: A PyTorh Toolbox for Face Recognition},
  journal = {Proceedings of the 29th ACM international conference on Multimedia},
  year = {2021}
}

If you have any questions, please contact with Jun Wang (wangjun492@jd.com), Yinglu Liu (liuyinglu1@jd.com), Yibo Hu (huyibo6@jd.com), Hailin Shi (shihailin@jd.com) and Wu Liu(liuwu1@jd.com).

Nearby in the ranking
Similar items