# Repository Briefing: Vchitect/VBench
> Source: https://repoforai.com/repo/Vchitect/VBench (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Vchitect/VBench
- **Official Docs / Website**: https://vchitect.github.io/VBench-project/
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: B (58/100 · Maintenance 12/35 · Adoption 15/25 · Releases 11/20 · License 20/20)
- **Latest Release**: v0.1.4 (2024-09-03) — https://github.com/Vchitect/VBench/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI, GPU
- **Momentum**: 1,866 ★ total (+1 24h / +7 7d) · 138 forks
- **Topics**: `aigc`, `benchmark`, `dataset`, `evaluation-kit`, `gen-ai`, `stable-diffusion`, `text-to-video`, `video-generation`
- **When to Use**: Best for: Teams comparing video generators on fixed prompts or tracking dimension-level regressions in an existing video corpus on local GPU workers. Skip if: You need a lightweight CPU-only check, a hosted scoring API, or a full standard score for arbitrary clips without following the benchmark protocol.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Core scoring: 16 text-to-video dimensions split into seven quality metrics and nine semantic metrics.
- Input contract: standard samples use `{model}/{dimension}/{prompt}-{index}.mp4/gif`; custom input accepts a file or directory without that naming convention.
- Aggregation: `scripts/constant.py` defines dimension-level min–max bounds and weights for combining quality and semantics.
- Temporal protocol: filter static clips before computing temporal flickering.
- Execution: call `VBench.evaluate()` from Python or run the CLI; v0.1.4 added multi-GPU inference.
- Suite boundaries: VBench++ covers image-to-video, long video, and trustworthiness; VBench-2.0 adds 18 dimensions across five categories.
```

## Quick Start / Clone
```bash
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118 # or any other PyTorch version with CUDA<=12.1
pip install vbench
```
