blender-motion-state-inspection
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
Measure whether an RT-VLM configuration change altered caption quality — capture paired baseline and candidate captions for a set of videos, score both against a ground truth with an LLM judge, and emit an accuracy and processing-time table. Use when changing frame selection, decode, or model settings and you need evidence there is no accuracy regression.
Answer one question with evidence: did this RT-VLM change make captions worse?
A configuration change that saves processing time is only useful if caption quality holds. This skill captures captions twice over the same videos — once with the change (HYP) and once without (REF) — scores both against a ground truth using an LLM judge, and reports accuracy delta alongside time saved.
Not for deploying RT-VLM, general LVS/RTVI benchmarking (see vss-benchmark-video-summarization), or one-off caption spot checks with no paired baseline.
Everything except the judge runs inside the RT-VLM container. The container
needs a GPU, the model on disk, and the nvdsframeselector DeepStream plugin
(shipped with DeepStream in the RT-VLM image).
| Requirement | Notes |
|---|---|
| Running RT-VLM container | Default name rtvi_vlm-$USER. Start it before running any stage |
| Model weights | Set MODEL_PATH in the deployment .env. Runs here used Qwen3-VL-32B-Instruct; any vLLM-compatible VLM works |
VLM_MODEL_TO_USE=vllm-compatible | In the deployment .env |
| Source videos | A directory of .mp4 files. Point DEDUP_DIR at it |
OPENAI_API_KEY | In the deployment .env. Only needed for the gt stage (ground truth is gpt-4.1) |
claude CLI on the host | The judge shells out to it. It is not installed in the container |
Deployment inside requires-vss | >=3.2.0,<4.0.0, from this skill's front matter. Not enforced automatically — this skill has no preflight.sh, and it drives RT-VLM's OpenAI-compatible HTTP surface directly rather than a VSS deployment origin, so there is no origin here to check. Verify by hand if a deployment's version is in doubt: python3 <repo>/services/agent/scripts/check_vss_version.py <deployment-origin> --skill <this SKILL.md> (0 = compatible, 3 = incompatible, 1 = indeterminate) |
scripts/run_captioning.py maps a filename to a short scene name in its SCENES
dict. Add your own videos there:
SCENES = {
"warehouse.mp4": "warehouse",
"GoPro5_10min_compressed.mp4": "new_warehouse",
# "<your-file>.mp4": "<scene-name>",
}
Scene names are what you pass on the command line; files are resolved inside
DEDUP_DIR. A scene whose file is missing is skipped with a warning.
The skill does not choose a model — it inherits whatever the container is configured with, and sets only the knobs under test. Both arms run the same model so the comparison isolates the configuration change, not the checkpoint.
They run in different places, so invoke them separately:
| Stage | Where | What |
|---|---|---|
gt | container | Ground truth from gpt-4.1. Expensive — run once per video set and reuse via GT_SRC |
capture | container | Paired REF + HYP per scene, back to back |
judge | host | claude-opus-4-8 scores REF and HYP against GT, per chunk |
table | either | Accuracy + time-saved markdown, optionally against a baseline run |
# 0. ground truth (once per video set)
docker exec -e DESC=my-run -w /workspace rtvi_vlm-$USER \
bash skills/benchmarking/vss-evaluate-caption-accuracy/scripts/run_eval.sh gt scene-a scene-b
# 1. capture — paired REF + HYP
docker exec -e DESC=my-run -w /workspace rtvi_vlm-$USER \
bash skills/benchmarking/vss-evaluate-caption-accuracy/scripts/run_eval.sh capture scene-a scene-b
# 2. judge — on the host, not in the container
DESC=my-run bash skills/benchmarking/vss-evaluate-caption-accuracy/scripts/run_eval.sh judge scene-a scene-b
# 3. table
DESC=my-run bash skills/benchmarking/vss-evaluate-caption-accuracy/scripts/run_eval.sh table scene-a scene-b
Replace -w /workspace with the path the repository is mounted at in your
container.
| Var | Default | Meaning |
|---|---|---|
DESC | eval-<date> | Run name. Everything lands in results/<DESC>/ |
VSS_REPO_DIR | /workspace | Path the repository is mounted at inside the container |
RTVI_CONTAINER | rtvi_vlm-$USER | Container name to exec into |
MODEL_PATH | unset | Pin a checkpoint for both arms. Unset inherits the container's own .env. When set, it is also used as RTVI_MODEL_PATH_ALLOWLIST, which VLM_TRUST_REMOTE_CODE=true requires |
DEDUP_DIR | <repo>/videos | Directory holding the source videos |
SFC | unset | NVDS_FSELECT_STATIC_FRAME_COUNT — frames emitted for a chunk classified STATIC. Unset leaves the plugin default |
GT_SRC | $DESC | Run to copy gt.txt from, so one ground truth serves many runs |
BASELINE | none | Run to diff against in table |
RESULTS_ROOT | <skill>/results | Where run folders live |
HYP_VER | v1 | Which hyp_<desc>_vN.txt to judge |
MAX_WORKERS | 32 | Judge concurrency |
REF caption generation is nondeterministic run to run. Judging HYP against a REF
captured in a different session moved per-scene deltas by up to 0.05 — larger than
most effects being measured. capture therefore runs HYP and REF back to back per
scene in one session. Only GT is reused, because it is expensive and comes from a
different model.
table writes results/<DESC>/summary.md: accuracy and processing time per scene,
LLM-judge entity/event F1 detail, and — with BASELINE — the incremental effect
versus that run. Totals are chunk-weighted, so a 60-chunk scene does not carry the
same weight as a 14-chunk one.
Two cautions:
combined_score_macro_0_1
averages entity, event, critical-event and interaction F1. Interaction F1 is often
a handful of samples and carries little signal, so it can mask a real entity-F1
move. Read the F1 detail block, not just the combined column.Frame-level provenance is stronger evidence than matching totals. When frame selection is active the plugin logs one line per chunk:
grep -oE 'EOS OF-only -> [0-9]+' results/<DESC>/server_logs/hyp_<scene>.log \
| grep -oE '[0-9]+$' | tail -n <chunks> | sort -n | uniq -c
Identical per-chunk frame counts across two runs mean the selector chose the same
frames. Matching chunk counts alone do not. The first values belong to pipeline
warmup rather than the scene, so take the trailing <chunks> entries.
scripts/run_eval.sh — the four stagesscripts/run_captioning.py — capture engine (gt / ref / hyp)scripts/multi_judge.py — judge engine; uses the local claude CLI, so no
ANTHROPIC_API_KEY is neededscripts/score.py — per-chunk scoring into summary.csvscripts/aggregate_table.py — the reportAFaffaan-m/ECC278k4,046 new stars in the last 7 days
ANanthropics/skills181k1,119 new stars in the last 7 days
Generate flow fields and particle systems with p5.js, using seeded randomness for original algorithmic art.
ANanthropics/skills181k1,119 new stars in the last 7 days
SHShubhamsaboo/awesome-llm-apps141k808 new stars in the last 7 days
HAharry0703/MoneyPrinterTurbo130k1,722 new stars in the last 7 days
PApaperclipai/paperclip101k2,948 new stars in the last 7 days