AGENT SKILL

video-and-tracking

Run 3DDFA_V2 video, smoothing, and manual webcam tracking workflows.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
video-and-tracking
license
MIT
metadata
{ "disco-role": "operating" }
description
Run 3DDFA_V2 video, smoothing, and manual webcam tracking workflows.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Video and tracking

Use this sub-skill for 3DDFA_V2 video-file processing and smoothing. Webcam support exists in the source repo but remains a manual, hardware-dependent workflow.

When to read

Read this sub-skill when the task asks to:

  • Run demo_video.py or demo_video_smooth.py on an AVI/MP4 file.
  • Produce tracked 2d_sparse, 2d_dense, or 3d video outputs.
  • Tune n_pre, n_next, start, or end frame-window settings.
  • Diagnose imageio, ffmpeg, tracking drift, or webcam/display issues.

Before running

  1. Build and smoke-test the checkout with ../setup-and-assets/.
  2. Confirm imageio and imageio-ffmpeg are installed.
  3. Start with the sample clip if the user's input format is uncertain.

Basic video wrapper

The basic wrapper preserves the original demo_video.py CLI. Put original arguments after --:

python <skill-root>/sub-skills/video-and-tracking/scripts/run-video.py \
  --repo-root <checkout> -- \
  -f <video-path> -o 3d --onnx

Smoothed video wrapper

The smoothed wrapper preserves the original demo_video_smooth.py CLI:

python <skill-root>/sub-skills/video-and-tracking/scripts/run-video-smooth.py \
  --repo-root <checkout> -- \
  -f <video-path> -o 2d_sparse -n_pre 1 -n_next 1 --onnx

Tracking behavior

  • The first frame uses detection; later frames track from the previous landmark state.
  • If the ROI area becomes too small, the demo re-runs face detection.
  • Motion that is too fast or head pose beyond roughly 90 degrees can make the lightweight tracker fail.
  • Smoothing uses a simple average over n_pre + n_next + 1 frames and drops or pads boundary frames.

Webcam boundary

The repo has a webcam script that uses imageio.get_reader("<video0>") and cv2.imshow. This skill documents the workflow in references/workflows.md, but does not provide an automated webcam wrapper because it needs live camera hardware, GUI display access, and manual quit handling.

Troubleshooting

Read references/troubleshooting.md for video-specific failure recovery and ../../references/troubleshooting.md for shared build/import failures.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351