AddressBench / code /README.md
LiconStudio's picture
Upload code/README.md with huggingface_hub
21ba8ee verified
|
Raw History Blame Contribute Delete
1.87 kB

AddressBench scoring pipeline

Run the benchmark on your own model's generations in four steps. All steps resume from their progress files; rerunning the same command continues where it stopped.

Layout

  • judge_cf.py — the judged probes (SBA / CSLR / SOR / EC / AC) over the counterfactual variants, one MLLM judge under a fixed scaffold (protocol: bindbench/spec/counterfactual_protocol.md).
  • score_identity_seq.py — FIS/TIS from ArcFace identity sequences (buffalo_l, 48 frames per video, per-frame one-to-one assignment; absent frames score zero in the TIS window).
  • run_ms_amt.py — MS from the AMT-based motion-smoothness implementation (numerically equivalent to VBench's to 1e-6).
  • score_counterfactual.py — aggregates the three into the eight table columns with per-column denominators and case-grouped bootstrap CIs.

Usage

# 1. judged probes (MLM judge; set your endpoint in the environment)
python3 -I judge_cf.py --model kimi-k3 --arm <your_arm_outputs_dir>

# 2. identity sequences and motion
python3 -I score_identity_seq.py --videos <your_arm_outputs_dir>
python3 -I run_ms_amt.py --videos <your_arm_outputs_dir>

# 3. aggregate to the eight columns
python3 -I score_counterfactual.py \
  --judge judge_cf_<arm>.jsonl --identity identity_seq_<arm>.jsonl --ms ms_amt_<arm>.jsonl \
  --tasks bindbench_pool_tasks.jsonl --variant-tasks bindbench_pool_variant_tasks.jsonl \
  --out counterfactual_<arm>.json --tex

Outputs land next to the videos by default. Failure taxonomy (unsupported input / generation failure / wrong answer) is reported separately and never mixed into the scores.

Requirements

Python 3.10+, PyTorch, and for the identity path an InsightFace/ArcFace runtime; the motion path uses AMT. The judged probes need an MLLM endpoint (any OpenAI-compatible chat API; the reference run used kimi-k3).