evaluation
Route LatentSync scoring, comparison, and diagnostic plotting for SyncNet confidence, SyncNet accuracy, FVD, and batch evaluation support.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- evaluation
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Route LatentSync scoring, comparison, and diagnostic plotting for SyncNet confidence, SyncNet accuracy, FVD, and batch evaluation support.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/metrics.md5.7 KB
- 参考文档references/troubleshooting.md6.7 KB
- 参考文档references/workflows.md7.9 KB
- 脚本scripts/plot_syncnet_curves.py4.1 KB
- 脚本scripts/run_evaluation.py21.1 KB
03 SKILL.md 正文
Evaluation
Use this sub-skill after candidate videos, real/fake comparison folders, or a trained SyncNet checkpoint already exist and the task is to score, compare, or diagnose them.
Do not use this sub-skill to create single videos, launch training, or run the raw data-preparation pipeline.
Route here when
- The user asks for SyncNet confidence, AV offset, SyncNet accuracy, FVD, or metric comparison.
- A generated-video folder needs batch scoring or a real-vs-fake metric.
- A SyncNet training checkpoint needs a validation-accuracy check or loss-curve plot.
- The blocker is likely a missing metric checkpoint, face detector, temp directory, ffmpeg/media backend, or evaluation config.
- The user asks what the preprocessing HyperIQA quality gate means.
Route elsewhere when
- The user wants to generate a video, run Gradio, or tune generation parameters for one example: use the inference sub-skill.
- The user wants to start or configure U-Net/SyncNet training: use the training sub-skill.
- The user wants raw-video cleanup, affine face alignment, AV sync filtering, or visual-quality filtering: use the data-preparation sub-skill.
- The only generation need is producing candidate batches before evaluation; use this sub-skill only for the batch-evaluation framing, then route detailed generation setup to inference.
Owned evidence surfaces
eval/eval_sync_conf.pyandeval/eval_sync_conf.shfor per-video or folder SyncNet confidence and AV offset.eval/eval_syncnet_acc.pyandeval/eval_syncnet_acc.shfor checkpoint-level SyncNet validation accuracy.eval/eval_fvd.pyandeval/fvd.pyfor real-vs-fake face-cropped FVD.eval/inference_videos.pyas batch-candidate support, not as a metric.eval/draw_syncnet_lines.pyandscripts/plot_syncnet_curves.pyfor SyncNet training-curve plots.eval/hyper_iqa.pyas the visual-quality reference used by preprocessing.- Detector/model internals used by the above:
eval/syncnet_detect.py,eval/syncnet/syncnet_eval.py,eval/syncnet/,eval/detectors/,latentsync/data/syncnet_dataset.py,latentsync/models/stable_syncnet.py,latentsync/utils/util.py, andconfigs/syncnet/*.yaml.
Start here
- Read
references/workflows.mdto choose the correct evaluation entry point. - Read
references/metrics.mdbefore interpreting confidence, accuracy, FVD, or HyperIQA scores. - Read
references/troubleshooting.mdbefore rerunning failed metric jobs. - Use
scripts/run_evaluation.pyfor parameterized SyncNet confidence, SyncNet accuracy, and FVD runs. - Use
scripts/plot_syncnet_curves.pyonly when plotting SyncNet checkpoint loss curves.
Operating rules
- Treat missing checkpoints as prerequisites and name the missing file before retrying.
- Prefer explicit
--repo-rootand repo-root-relative paths; the bundled scripts do not depend on a fixed checkout location. - Use isolated temp directories for SyncNet confidence runs, especially in parallel batch scoring.
- Keep FVD comparisons consistent: same crop logic, similar clip lengths, and enough videos per side for a meaningful covariance estimate.
- Keep HyperIQA in this sub-skill as a semantics/reference item; data-preparation owns running the visual-quality filter.
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).