face-evolve
Use face.evoLVe for high-performance face recognition workflows across alignment, data preparation, PyTorch training, feature verification, and Paddle deployment.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- face-evolve
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use face.evoLVe for high-performance face recognition workflows across alignment, data preparation, PyTorch training, feature verification, and Paddle deployment.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/quickstart-and-environment.md4.6 KB
- 参考文档references/repo-provenance.md2.4 KB
- 参考文档references/repo-routing-metadata.json412 B
- 参考文档references/troubleshooting.md4.5 KB
- 脚本scripts/check_face_evolve_env.py4.0 KB
03 SKILL.md 正文
face-evolve
Use this repo skill when the task involves face.evoLVe, a source-style face recognition library with PyTorch and PaddlePaddle workflows for face alignment, identity-folder data preparation, backbone/head/loss training, feature extraction, verification metrics, quantization, and deployment demos.
This skill is for operating or adapting face.evoLVe workflows. It is not a generic face-recognition tutorial and it is not a full replacement for trained checkpoints, public datasets, Paddle export artifacts, or accelerator runtimes.
First read
- Read
references/repo-provenance.mdbefore deciding whether this skill matches a current checkout or should be refreshed. - Read
references/quickstart-and-environment.mdfor install/import expectations, source-style checkout behavior, optional dependency groups, and safe smoke checks. - Read
references/troubleshooting.mdwhen imports, source entrypoints, optional dependencies, data paths, or backend assumptions fail. - Run
scripts/check_face_evolve_env.pyfor a lightweight dependency and optional checkout sanity check before launching training, extraction, or Paddle workflows.
Route by task
- Use
sub-skills/face-alignment/SKILL.mdfor MTCNN detection, landmark localization, affine face crops, batch alignment, crop-size scaling, and resize-before-align preprocessing. - Use
sub-skills/data-preparation/SKILL.mdfor ImageFolder identity-folder validation, low-shot class pruning, hidden-file cleanup, validationbcolz/_list.npylayouts, and public data/model zoo constraints. - Use
sub-skills/pytorch-training/SKILL.mdfor PyTorch config editing, IR/IR-SE/ResNet backbone construction, ArcFace/CosFace/SphereFace/Am_softmax heads, Focal/Softmax losses, training/validation/checkpoints, and legacy source repair. - Use
sub-skills/feature-extraction-verification/SKILL.mdfor extracting embeddings from PyTorch checkpoints, v1/v2 preprocessing, horizontal-flip TTA, l2 normalization, ROC/threshold verification, and pair-array validation. - Use
sub-skills/paddle-workflows/SKILL.mdfor PaddlePaddle training, PaddleSlim quantization, Paddle Inference demos, Paddle Lite demos, and Paddle import-shadowing/deployment artifact checks.
Operating defaults
- Treat face.evoLVe as a source checkout, not a normal pip-installable distribution: place the target checkout on
PYTHONPATHonly for the relevant framework path and prefer the bundled helper scripts when available. - Prefer CPU-only smoke checks for planning and debugging. Full PyTorch/Paddle training and deployment require external datasets, trained/exported models, and often CUDA or edge runtimes.
- For PyTorch model work, start with README-supported combinations:
IR_50orIR_SE_50,ArcFace,Focal,INPUT_SIZE=[112,112], and 512-dimensional embeddings. - For Paddle work, avoid putting the repository root on
PYTHONPATHbefore importing PaddlePaddle because the repo has a top-levelpaddle/source directory. - Validate identity-folder data before pruning, training, or extracting features; hidden files and empty/low-shot classes are common failure sources.
Do not do by default
- Do not run full training, public dataset downloads, model-zoo downloads, quantization, Paddle Inference video demos, or Paddle Lite edge demos unless the user supplies the required artifacts and accepts runtime cost/hardware needs.
- Do not rely on the original construction checkout path. If a bundled script asks for
--repo-root, pass the user's target face.evoLVe checkout explicitly. - Do not claim CUDA, Paddle Inference, Paddle Lite, or quantization verification from a CPU import smoke.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).