Setup and assets

From VectorSpaceLab/AREX-Skill · View interactive version

Setup and assets is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Prepare 3DDFA_V2 runtime assets and native extension builds before demos or benchmarks.

How to use this skill

Skill file

Setup and assets

Use this sub-skill before any 3DDFA_V2 demo or benchmark, and whenever a user

reports missing checkpoints, failed imports, or native-build errors.

When to read

Read this sub-skill when the task mentions:

Sim3DR_Cython.

onnxruntime.

Preparation workflow

  1. Check assets. Run the bundled asset checker against the checkout root.

It reads the selected YAML config and reports missing checkpoints, BFM files,

and sample inputs.

  1. Build native extensions. Build FaceBoxes NMS, Sim3DR, and render.so in

that order. These are needed even for many headless demo paths because the

top-level scripts import rendering modules.

  1. Smoke-test imports. Run the core import helper; it loads FaceBoxes,

constructs TDDFA from the default config, imports the ONNX classes, and

verifies the render import surface.

  1. Only then route onward. Send still-image requests to

../still-image-demo/, video/tracking requests to ../video-and-tracking/,

and ONNX/benchmark requests to ../onnx-and-benchmarking/.

Bundled helpers

Use these root-level helper scripts from this generated skill:

with explicit commands.

used by the wrapper scripts.

Example pattern:

python <skill-root>/scripts/check_assets.py --repo-root <checkout>
python <skill-root>/scripts/build_native_extensions.py --repo-root <checkout>
python <skill-root>/scripts/check_core_imports.py --repo-root <checkout>

Do not copy private environment paths into user-facing notes. Describe the

required packages generically: Python 3.10/3.11, torch/torchvision, OpenCV,

imageio/imageio-ffmpeg, PyYAML, tqdm, Cython, SciPy, matplotlib, and

onnxruntime.

Dependency and backend decisions

generated skill's baseline verification.

similar aliases fail at import time.

not block on GUI display in non-interactive environments.

Asset responsibilities

Read references/build-and-assets.md for the build order and asset checklist.

Read ../../references/model-assets.md for checkpoint/config purposes and

public download notes. Read references/troubleshooting.md for setup-specific

failure recovery.

Boundaries

This sub-skill owns setup, assets, and import smoke checks. It does not own

choosing demo output modes, video smoothing windows, or interpreting latency

numbers except where those tasks fail because setup is incomplete.

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.