MCPcopy Index your code
hub / github.com/xinntao/facexlib

github.com/xinntao/facexlib @v0.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.0 ↗ · + Follow
306 symbols 825 edges 50 files 77 documented · 25% 10 cross-repo links updated 2y agov0.2.5 · 2022-08-31★ 97733 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

icon FaceXLib

PyPI download Open issue Closed issue LICENSE python lint Publish-pip

English | 简体中文


facexlib aims at providing ready-to-use face-related functions based on current SOTA open-source methods.

Only PyTorch reference codes are available. For training or fine-tuning, please refer to their original repositories listed below.

Note that we just provide a collection of these algorithms. You need to refer to their original LICENCEs for your intended use.

If facexlib is helpful in your projects, please help to :star: this repo. Thanks:blush:

Other recommended projects:   :arrow_forward: Real-ESRGAN   :arrow_forward: GFPGAN   :arrow_forward: BasicSR


:sparkles: Functions

Function Sources Original LICENSE
Detection Pytorch_Retinaface MIT
Alignment AdaptiveWingLoss Apache 2.0
Recognition InsightFace_Pytorch MIT
Parsing face-parsing.PyTorch MIT
Matting MODNet CC 4.0
Headpose deep-head-pose Apache 2.0
Tracking SORT GPL 3.0
Assessment hyperIQA -
Utils Face Restoration Helper -

:eyes: Demo and Tutorials

:wrench: Dependencies and Installation

Installation

pip install facexlib

Pre-trained models

It will automatically download pre-trained models at the first inference.

If your network is not stable, you can download in advance (may with other download tools), and put them in the folder: PACKAGE_ROOT_PATH/facexlib/weights.

:scroll: License and Acknowledgement

This project is released under the MIT license.

:e-mail: Contact

If you have any question, open an issue or email xintao.wang@outlook.com.

Core symbols most depended-on inside this repo

conv_dw
called by 13
facexlib/detection/retinaface_net.py
get_block
called by 12
facexlib/recognition/arcface_arch.py
init_detection_model
called by 8
facexlib/detection/__init__.py
detect_faces
called by 8
facexlib/detection/retinaface.py
load_file_from_url
called by 7
facexlib/utils/misc.py
img2tensor
called by 5
facexlib/utils/misc.py
conv_bn
called by 5
facexlib/detection/retinaface_net.py
tformfwd
called by 5
facexlib/detection/matlab_cp2tform.py

Shape

Method 147
Function 98
Class 61

Languages

Python100%

Modules by API surface

facexlib/recognition/arcface_arch.py33 symbols
facexlib/detection/retinaface_net.py25 symbols
facexlib/matting/modnet.py24 symbols
facexlib/alignment/awing_arch.py23 symbols
facexlib/assessment/hyperiqa_net.py20 symbols
facexlib/detection/retinaface_utils.py19 symbols
facexlib/parsing/bisenet.py18 symbols
facexlib/parsing/parsenet.py15 symbols
facexlib/utils/face_restoration_helper.py13 symbols
facexlib/matting/mobilenetv2.py11 symbols
facexlib/detection/retinaface.py11 symbols
facexlib/detection/matlab_cp2tform.py9 symbols

For agents

$ claude mcp add facexlib \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page