facexlib
Basic face library
What it is and what it does
Facexlib is a collection library that wraps state-of-the-art open-source face analysis algorithms into a unified PyTorch interface. It provides nine face-related capabilities—detection, alignment, recognition, parsing, matting, head pose estimation, tracking, quality assessment, and utility helpers—each sourced from a different reference implementation and aggregated under one package.
The library is designed for practitioners who need ready-to-use face functions without implementing each algorithm from scratch. It handles pre-trained model management automatically, downloading weights on first use. Because it aggregates multiple algorithms with different original licenses (MIT, Apache 2.0, CC 4.0, GPL 3.0), users must verify the license terms of each function they use against their intended application.
Use it for:
- Build a face detection and alignment pipeline for preprocessing images before feeding to downstream models.
- Perform face recognition or identity verification using the integrated InsightFace algorithm.
- Segment facial regions (parsing) to identify eyes, nose, mouth, and other anatomical parts.
- Estimate head pose angles for gaze direction or 3D face reconstruction tasks.
- Track faces across video frames using the integrated SORT tracker.
- Assess face image quality to filter low-quality samples before processing.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Facexlib provides a collection of PyTorch-based face analysis functions including detection, alignment, recognition, parsing, matting, head pose estimation, tracking, and quality assessment.
Yes, if you need multiple face analysis functions and can accept dormant maintenance. The package offers genuine convenience by aggregating well-known algorithms into one interface with low install friction. However, verify that the original licenses of the specific functions you use align with your project, and be aware that no active development means you may need to fork or patch for compatibility with newer PyTorch or CUDA versions.
Install
facexlib on PyPI
pip
pip install facexlibuv
uv add facexlibpoetry
poetry add facexlibInstalling facexlib
Before you install
Low install friction with a pure-Python wheel. Dormant maintenance (last commit 2024-02-29, 1217 days since release) means no recent updates, though the repository remains active with 976 stars. Expect to manage pre-trained model downloads yourself if network connectivity is unreliable.
License in practice
Released under Apache License 2.0 (permissive). However, the package aggregates algorithms from multiple sources with different licenses (MIT, Apache 2.0, CC 4.0, GPL 3.0); you must review the original licenses of the specific functions you use, as noted in the documentation.
Quickstart
pip install facexlib
import facexlib
# Pre-trained models download automatically on first use
# Example: detector = facexlib.detection.init_detection_model(...)
PyTorch >= 1.7 required; Python >= 3.7 recommended. Pre-trained models download automatically on first inference; stable network connection recommended.
Verify before relying
- Whether pre-trained model downloads work reliably from current sources or if mirrors/fallbacks are needed.
- Compatibility with PyTorch versions beyond 1.7 and current CUDA releases.
- Performance and accuracy of each function relative to their original implementations.
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — filterpy, numba, numpy, opencv-python, Pillow, scipy, torch, torchvision, tqdm |
| Maintenance | dormant — 1,217 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,167,161/month — #4,276 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: facexlib-0.3.0-py3-none-any.whl
Keywords: computer vision, face, detection, landmark, alignment
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
face-alignmentDetects 2D and 3D facial landmarks from images…
permissive · top 15,000 on PyPI
PyMattingPyMatting solves the alpha matting…
permissive · top 5,000 on PyPI
retina-faceDetects faces in images and extracts facial…
permissive · top 15,000 on PyPI
mtcnnDetects faces and facial landmarks (eyes, nose,…
permissive · top 5,000 on PyPI
face-recognitionDetects, locates, and identifies faces in…
permissive · top 15,000 on PyPI
insightfaceInsightFace is a Python library for face…
unclear · top 5,000 on PyPI
face_recognition_modelsProvides pre-trained deep learning models for…
permissive · top 15,000 on PyPI
smplxLoads and manipulates SMPL-X, a unified 3D body…
unclear · top 15,000 on PyPI
basicsrBasicSR is a PyTorch-based toolbox for image…
permissive · top 15,000 on PyPI
realesrganReal-ESRGAN upscales images and videos using…
permissive · top 15,000 on PyPI