3ddfa

From VectorSpaceLab/AREX-Skill · View interactive version

3ddfa is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

How to use this skill

Skill file

3DDFA Repo Skill

Use this repo skill when a task involves 3DDFA / 3D Dense Face Alignment: face alignment in full pose range, 68-point landmark prediction, dense 3D face vertices, pose boxes, PLY/OBJ export, depth/PNCC/PAF outputs, MobileNet-V1 checkpoints, 3DDFA training/evaluation, or the optional C++ OpenCV DNN port.

This skill is an operating guide for a 3DDFA checkout or adapted codebase. It is self-contained: use the references and bundled scripts here for routing, command construction, diagnostics, and troubleshooting instead of reopening the original repository documentation.

First Checks

  1. Read references/repo-provenance.md before deciding whether this skill matches a checkout.
  2. Read references/install-and-compatibility.md before installing dependencies or choosing CPU/CUDA/dlib/Cython paths.
  3. Run scripts/check_3ddfa_environment.py against the target checkout for a safe import/resource diagnostic.
  4. If the task names a concrete workflow, route to the matching sub-skill below.

Minimal diagnostic from this skill root:

python scripts/check_3ddfa_environment.py --repo-root /path/to/3DDFA

The diagnostic checks resources and imports; it does not run native inference, training, downloads, CMake builds, or benchmarks.

Route Map

| User task or signal | Read |

|---|---|

| Run still-image inference, no-dlib bbox inference, inspect main.py flags, diagnose dlib/Cython startup, verify MobileNet forward shape, understand output filenames | sub-skills/python-inference/SKILL.md |

| Decode 62-D parameters, ROI boxes, sparse/dense vertices, PLY/OBJ/.mat, pose matrices, depth/PNCC/PAF, Cython renderer, BFM/3DMM data artifacts, video-frame rendering | sub-skills/geometry-rendering/SKILL.md |

| Adapt training commands, choose WPDC/VDC/PDC, validate filelists/param files/data roots, resume checkpoints, interpret AFLW/AFLW2000 metrics | sub-skills/training-evaluation/SKILL.md |

| Export MobileNet checkpoint to ONNX, place C++ weights, build/run OpenCV DNN demo, debug CMake/OpenCV/Yolo/ONNX issues | sub-skills/cpp-onnx-port/SKILL.md |

| Cross-cutting install/import/runtime failure | references/troubleshooting.md |

Operating Boundaries

Bundled Scripts

Verification Expectations

Safe verification usually includes:

Do not claim native end-to-end inference, GPU training/evaluation, full benchmarks, or C++ runtime success unless those exact paths were run in the target environment.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.