Still-image demo
Use this sub-skill for demo.py workflows on a single image: sparse or dense
landmarks, 3D renderings, depth, PNCC, UV texture, pose boxes, and PLY/OBJ mesh
exports.
When to read
Read this sub-skill when the task asks to:
- Run 3DDFA_V2 on a still image.
- Generate
2d_sparse,2d_dense,3d,depth,pncc,uv_tex,pose,ply, orobjoutputs. - Use
--onnxfor a single-image demo. - Diagnose
No face detected, missing result files, headless plotting, or mode-specific failures.
Before running
- Use
../setup-and-assets/if native extensions or checkpoints are not known to be ready. - Check
../../references/model-assets.mdwhen switching configs or missing weight files. - In headless environments, keep
--show_flag false; the bundled wrapper also sets a headless plotting backend.
Main wrapper
The bundled wrapper preserves the original demo.py CLI. Put original demo
arguments after --:
bashpython <skill-root>/sub-skills/still-image-demo/scripts/run-still-image.py \ --repo-root <checkout> -- \ -f <image-path> -o 3d --show_flag false --onnx
Use direct repo commands only when you already applied the same compatibility and headless setup the wrapper provides.
Output selection
Read references/workflows.md for the full output-mode table. The highest-use
choices are:
2d_sparsefor 68-point landmark overlays.2d_densefor dense landmark visualization.3dfor rendered dense mesh overlay.depth,pncc, anduv_texfor specialized per-pixel visual products.posefor yaw/pitch/roll pose-box visualization.plyandobjfor mesh serialization.
Outputs default to examples/results/ and use the input basename plus the
selected option.
Decision points
- Prefer
--onnxfor CPU latency and when the.onnxassets are already present or can be auto-converted. - Use
configs/mb05_120x120.ymlwhen the task values speed over the default backbone. - Use dense reconstruction for
3d,depth,pncc,uv_tex,ply, andobj; sparse mode is enough for2d_sparseandpose. - If the user needs multi-frame tracking, route to
../video-and-tracking/. - If the user asks about latency numbers rather than a saved image, route to
../onnx-and-benchmarking/.
Troubleshooting
Read references/troubleshooting.md for still-image-specific failures and
../../references/troubleshooting.md for shared build/import failures.


