Vchitect/VBench
A modular video-generation benchmark that pinpoints quality and prompt-alignment regressions
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
VBench evaluates already-generated clips; it does not run the generator. evaluate.py, vbench evaluate, and the Python VBench.evaluate() API take a video path and selected dimensions. The standard workflow uses the prompt metadata in vbench/VBench_full_info.json and organizes samples by model, dimension, prompt, and sample index. Each dimension runs a designated evaluation method or pipeline rather than relying on a single scoring model.
The Python stack runs on PyTorch and torchvision, with Decord and OpenCV for video and image handling and dependencies including OpenAI CLIP, timm, pyiqa, and transformers==4.33.2. The base package lives in vbench/; the tree separates the VBench++ variants into vbench2_beta_* directories and puts VBench-2.0 in VBench-2.0/. That separation matters for integration: select the suite before wiring up its inputs and scoring rather than treating the variants as interchangeable base CLI modes.
Key Capabilities & Differentiators
The base text-to-video benchmark reports 16 dimensions: seven quality measures, including subject consistency, flicker, motion smoothness, and imaging quality, and nine semantic measures, including action, spatial relationships, style, and overall consistency. The total-score workflow applies per-dimension min–max normalization and combines weighted quality and semantic scores. Category mode (--mode=vbench_category) supports comparisons by content category.
Base custom_input mode accepts a file or directory without benchmark filenames, but covers only subject consistency, background consistency, motion smoothness, dynamic degree, aesthetic quality, and imaging quality. It is not a route to a full standard score on arbitrary clips. VBench++ adds image-to-video, long-video, and trustworthiness evaluations. VBench-2.0 targets intrinsic faithfulness with 18 dimensions in five categories, addressing areas such as physical plausibility, commonsense reasoning, and human motion.
Trade-offs & Limitations
Compared with a single aggregate metric, VBench makes it easier to see whether a model improved prompt adherence at the expense of temporal stability. The cost is a broader evaluator stack, more weight management, and dimension-dependent GPU usage. For regression gating, keep the per-dimension results: the weighted total can hide a loss that matters to the product even when the overall score improves.
Reproducibility depends on controlling the suite revision, prompts, sample protocol, and preprocessing. In particular, static clips must be filtered before temporal flickering is measured. Keep custom-input results separate from full standard-suite totals, and use targeted human review when metric rankings disagree with observed artifacts. Apache-2.0 covers the repository; commercial deployments should check third-party weights and assets separately.
Hardware & Deployment Guide
For the base CLI, install CUDA-compatible PyTorch and torchvision, then pip install vbench. The provided installation example uses CUDA 11.8 wheels. Some dimensions additionally need Detectron2, for which the listed CUDA boundary is 11.x or 12.1. Check the Python environment against numpy<2.0.0, timm>=0.9,<=1.0.12, and transformers==4.33.2, especially if sharing it with the generator.
For offline workers, stage the clips, prompt metadata, and required weights under the configured paths; ~/.cache/vbench is the specified location for staging weights. Validate one dimension end to end before scheduling the suite. v0.1.4 fixed an aesthetic-quality OOM and added multi-GPU inference via torchrun or vbench evaluate --ngpus; the January 2025 PyPI v0.1.5 update lists preprocessing fixes and PyTorch 2.0+ support. Pin the package or source revision for each run, particularly when using the separate 2.0 suite.
{model}/{dimension}/{prompt}-{index}.mp4/gif; custom input accepts a file or directory without that naming convention.scripts/constant.py defines dimension-level min–max bounds and weights for combining quality and semantics.VBench.evaluate() from Python or run the CLI; v0.1.4 added multi-GPU inference.Teams comparing video generators on fixed prompts or tracking dimension-level regressions in an existing video corpus on local GPU workers.
You need a lightweight CPU-only check, a hosted scoring API, or a full standard score for arbitrary clips without following the benchmark protocol.
Quick Start & Installation
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118 # or any other PyTorch version with CUDA<=12.1 pip install vbench
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Vchitect/VBench.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about VBench
How do I integrate VBench into a model evaluation pipeline?
vbench evaluate or VBench.evaluate(). Use VBench_full_info.json and the standard prompt layout for benchmark comparisons. For an existing corpus, use --mode=custom_input and select only the dimensions supported by that mode.How should I size GPU memory and runtime?
torchrun or --ngpus to scale inference rather than assuming multi-GPU execution lowers each evaluator's peak memory.Can a commercial team self-host VBench?
When is VBench preferable to a single-metric scorer or a human review panel?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy