Skip to content

About

Evaluation code for VisualTalk-Bench: question-driven avatar-led video explanations

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

VisualTalk-Bench Evaluation

Official evaluation code for VisualTalk-Bench: Evaluating Question-Driven Avatar-Led Video Explanations. This repository provides the evaluation pipeline; it does not include the Avatar-O generation agent or the full dataset.

Project page · Paper · Website source · 中文说明

Evaluate presentation videos using the supplied questions and standard answers. Results include seven metrics, coverage statistics and supporting evidence:

Evaluation Metrics Implementation
Content Visual fact accuracy, speech fact accuracy, speech–visual alignment content/evaluate.py
Pointing Pointing accuracy, pointing rate pointing/evaluate.py
Visual quality Full-frame visual quality, reference-free v3 visual/evaluate.py
Lip synchronization Speech-duration lip-sync quality lip/evaluate.py

The evaluator saves input records and file hashes, decodes video/audio, transcribes and aligns speech, calculates the metrics and summarizes the results. Facts are extracted from speech and frames before being checked against the standard answer. Valid explanations beyond the reference are accepted. Unknown judgments and execution failures retain their reasons and coverage. Each metric is reported separately.

Included demo video

edu_math_011_q01__scene-01.mp4

Open video in browser

The playable example above is a Chinese mathematics demo from the paper project page is bundled in examples/media/. The supplied examples/videos.json points to this video and includes an illustrative question and standard answer. After installation, the preparation and --dry-run commands below work with it without model-service calls. Computing actual scores requires the runtime services and assets described below.

Install and run

Linux, Python 3.10+, FFmpeg/ffprobe. See runtime setup for services, credentials, alignment assets and SyncNet weights.

python -m venv .venv
source .venv/bin/activate
python -m pip install -e '.[media,asr,lip-sync]'

Edit examples/videos.json with your videos, questions and standard answers. Paths are relative to that manifest. Preparation configures the content judge; configure judge (pointing) and avatar_judge (visual quality) separately in the generated configuration.

visualbench-prepare examples/videos.json --output results/inputs \
  --judge-model YOUR_MODEL --judge-base-url http://127.0.0.1:8008/v1
visualbench-evaluate --config results/inputs/config.json --output results/evaluation --dry-run
visualbench-evaluate --config results/inputs/config.json --output results/evaluation --workers 1
visualbench-evaluate --output results/evaluation --resume

python -m presentation_bench is equivalent to visualbench-evaluate. Select a subset through stages in the manifest. Dry-run checks input identity and video metadata. Run without --dry-run to run the evaluation. Resume requires unchanged code, inputs and configuration.

Open results/evaluation/index.html. The directory also contains results.json, summary.json, scores.csv, model_scores.csv, saved input records and logs. Each evaluation retains its observations and evidence reports. Aggregation balances repeats, scenes, questions and sources; incomplete observations are marked explicitly.

Code and tests

Start with batch.py and worker.py, then evaluate.py in content/, pointing/, visual/ and lip/. Shared I/O, media, ASR and model transport live in common/. Only the current workflow is included.

python -m pip install -e '.[test]'
python -m pytest -q
python scripts/check_release.py

Tests check scoring calculations, media processing and report generation. See the test results.

License

This project is licensed under the Apache License 2.0. The SyncNet patch retains the upstream license notice.

About

Evaluation code for VisualTalk-Bench: question-driven avatar-led video explanations

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages