Tencent-Hunyuan/ORAV-Bench
Python
Captured source
source ↗Tencent-Hunyuan/ORAV-Bench
Language: Python
License: Apache-2.0
Stars: 1
Forks: 0
Open issues: 0
Created: 2026-11-05T09:20:09Z
Pushed: 2026-11-06T15:12:09Z
Default branch: main
Fork: no
Archived: no
README:
ORAV Bench
Benchmarking Audio-Video Generation from Multimodal Contexts
Jiacheng Hua1,2, Xiaokun Feng2, Jiaqi Hua1, Chang Liu1, Yilin Wang1, Biao Wang2,†, Miao Liu1,‡
1 College of AI, Tsinghua University 2 Tencent Hy
† Project lead ‡ Corresponding author
Paper · Quick start · Evaluation · Diagnostics · Contribute · Citation
Overview
ORAV Bench evaluates Omni Reference Audio-Video Generation: producing one coherent audio-video event from an instruction and heterogeneous image, video, and audio references. The instruction determines which properties each reference should contribute, how they bind to the output, and which source content should be excluded.
380 tasks · 2–10 references per task · 9 semantic roles · 30 role compositions
This repository provides the evaluation pipeline: reference-aware pairwise judging, system ranking, and pointwise diagnostics. The Judge achieves 86.08% effective agreement with human judgments on a 10% held-out subset of the benchmark. Benchmark tasks and model generations are released separately: ORAV-Bench and ORAV-Bench-Artifacts.
| Reference modality | Semantic roles | | ------------------ | ------------------------------------------- | | Image | subject, prop, scene, style | | Video | motion, camera_movement, vfx | | Audio | speech, music |
Evaluation
ORAV evaluates the contribution of each reference within the complete requested event. A visually blind Listener provides auditory evidence; the Judge compares that evidence with timestamped visual panels in both presentation orders.
Demonstration. In the illustrated case, Y realizes the defining motion more closely, while X better matches the camera. ORAV prefers Y based on its contribution to the complete instruction.
| Entry point | Purpose | | -------------------- | --------------------------------------------------------------------------- | | orav prepare | Prepare full-duration media proxies and timestamped panels for inspection | | orav evaluate | Run the Listener and Judge, preserving requests, responses, and comparisons | | orav rank | Report system ranking and confidence intervals | | orav diagnostics | Measure quality, reference affinity, and speech independently of the Judge |
Quick start
Use Python 3.11 or 3.12, with FFmpeg 5.1+ (including libx264) and ffprobe available on PATH:
git clone https://github.com/Tencent-Hunyuan/ORAV-Bench.git cd ORAV-Bench python -m venv .venv source .venv/bin/activate python -m pip install -e . orav --help
Download the tasks and the model outputs you want to compare. This example selects two models and downloads the exact benchmark revision recorded in the artifacts' benchmark.json. The data/ directory is ignored by Git.
python -m pip install huggingface_hub python - /prompt.en.txt` and `prompt.zh.txt`. References are resolved within each task folder; output videos are resolved within each model folder. The join verifies the task definitions and English prompts against the artifacts' input fingerprint.
data/ benchmark/ tasks.json tasks// prompt.en.txt prompt.zh.txt refs/... artifacts/ benchmark.json / manifest.json videos/.mp4
For your own model, create a distinct model folder and record its generation settings and task status in `manifest.json`, for example:
{"config": {"model": "my-model"}, "completed": ["subject-motion-7f681a"], "failed": []}
Save each completed output as `videos/.mp4`; omit unsubmitted tasks from both lists. Add the new manifest to `--generations` and use a new evaluation output directory. For results in another directory, copy the matching root `benchmark.json` there. The join maps unavailable candidates to `null` and never substitutes old outputs. You can also supply an evaluation manifest directly using [examples/manifest.json](examples/manifest.json); its paths are relative to the file. All paths in that example are illustrative. Set the evaluator model names and endpoints in [examples/evaluation.json](examples/evaluation.json). `judge` and `listener` select entries from `models`; each entry configures its own API model and credentials. The Judge supports Responses, Chat Completions, or Gemini; the Listener uses Gemini audio input. Set the corresponding environment variables and run evaluation and ranking:
Base URLs include the API prefix; credentials are read from the environment.
export ORAV_ASTRA_BASE_URL='https://YOUR-JUDGE-HOST/v1' export ORAV_ASTRA_API_KEY='YOUR-JUDGE-KEY' export ORAV_GEMINI_BASE_URL='https://YOUR-LISTENER-HOST/v1beta' export ORAV_GEMINI_API_KEY='YOUR-LISTENER-KEY'
Optional: prepare and inspect media before any API calls.
orav prepare runs/example/manifest.json --config examples/evaluation.json --output runs/example orav evaluate runs/example/manifest.json --config examples/evaluation.json --output runs/example --workers 8 orav rank runs/example/comparisons.json --output runs/example/ranking.json
The output includes visual panels, auditory evidence, ordered judgments, fused comparisons, and source identities. Ranking uses shared-delivery instances by default. Ties, order conflicts, unavailable responses, and insufficient evidence remain distinct in the comparison records. For a Chat Completions judge, select `"judge": "chat-judge"`, replace its `model`, and set `ORAV_CHAT_BASE_URL` and `ORAV_CHAT_API_KEY`. It must support images and JSON Schema outputs. Per-model rate limits, timeouts, and output budgets are set in the same configuration file. Reuse an output directory to resume identical requests, including cached failures. To reevaluate from scratch, choose a new empty output directory; there is no `--force` flag. Changed inputs, evaluator settings, or code require a new directory. Use one process per output directory and `--workers` for concurrency. Ranking counts order conflicts as ties by default; `--exclude-conflicts` removes them. Use `--role motion` for a role-conditioned ranking or `--no-audio-reference` for tasks without audio references. Role-conditioned rankings...
Excerpt shown — open the source for the full document.