← Back to Leaderboard
DAMAP-ML

AMAP-ML/DriveStreamBench

HF Paper ↗

Python benchmark for instruction-driven alerts in causal driving video streams

View on GitHub ↗
AI BenchmarkQuickstart ↓
Engineering Health (Methodology)
A · 76/100
Maintenance Activity
● Updated today
Latest Release
v1.0.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption1/25
Release Cadence20/20
License Clarity20/20
CLIGPU1 README badge views (30d)
Total Stars
★ 58
24h Growth
+42
7d Growth
+57
Forks
0

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

AMAP-ML/DriveStreamBench Star History (2026-10-26 - 2026-12-01) DAILY STAR HISTORY (33-DAY D1 TELEMETRY) +57 in 36d · avg +2/day 62 31 0 2026-10-26: ★ 12026-10-31: ★ 12026-11-03: ★ 12026-11-06: ★ 12026-11-09: ★ 12026-11-12: ★ 12026-11-15: ★ 12026-11-18: ★ 12026-11-21: ★ 12026-11-24: ★ 12026-11-27: ★ 12026-12-01: ★ 58 ★ 58 10-26 11-13 12-01

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

DriveStreamBench is a Python 3.9+ evaluation harness for replaying driving video as a causal stream. Given a user watch instruction, drivestreambench.inference.run_l4 reads annotation JSONL and sampled frames from --dataroot, selects a model through --model, and runs decisions on the prescribed schedule without exposing future frames. The model returns ALERT when the requested event occurs and NO REPLY otherwise.

Inference and scoring are separate CLI steps. The runner writes prediction JSONL and a run manifest through --output and --manifest; scripts/evaluate.py consumes annotations and predictions and emits score JSON. The demonstrated selector is qwen3vl:Qwen/Qwen3-VL-8B-Instruct. The package uses setuptools and wheel, with optional extras for VLM, API, training, and test workflows. Adapter usage and score parser selection are documented separately, so a change of backend need not change the evaluation protocol.

Key Capabilities & Differentiators

The v1.0.0 data release contains 26,853 annotation records across L1–L4. L4 uses 2 FPS input and one decision per second by default. The scorer maps 10 FPS reference frames onto the sampled-frame grid, so its --fps setting must match the prediction run: use --fps 2 for the default and --fps 1 for native 1 FPS. Core Macro averages AlertScore@2s across S1–S5; S6 is evaluated separately rather than folded into that headline aggregate.

For shorter runs, scripts/build_l4_short.sh generates annotations/l4_short_test.jsonl with a 15-second maximum per sample. docs/evaluation.md covers output formats, parser selection, and L1–L3 scoring. The reference SFT workflow includes data conversion and training entry points but no model weights. The demo plays original frames at 4 FPS, twice the default L4 input rate, and marks reference events; it should not be read as benchmark inference footage.

Trade-offs & Limitations

A general-purpose video QA evaluator can test broader clip understanding, but it does not necessarily constrain decisions to information available at the alert time. DriveStreamBench makes that constraint explicit and fixes the L4 sampling, decision cadence, and scenario aggregation. That makes model and instruction-following comparisons easier to interpret, at the cost of less direct coverage of products with a different sampling policy, alert behavior, or operating environment.

The benchmark measures alert behavior under replay, not capture-to-notification latency or road safety. For those goals, a custom playback and instrumentation harness offers more control but requires maintaining its own protocol and scorer. Local VLM runs need model weights and hardware capacity; API runs can shift the inference burden off the local machine but bring per-call costs and data-handling considerations. CPU scoring is easy to separate from either path, but acquiring and preparing source media remains an independent setup task.

Hardware & Deployment Guide

Install on Python 3.9 or later using python -m pip install -e '.[test]', then run bash scripts/run_smoke_test.sh. Scoring and the example run work on CPU. Add .[vlm] for the local VLM path, .[api] for API-based evaluation, or .[train] for the reference training workflow. For local inference, measure peak memory and processing time with the selected model and representative clips before sizing for concurrent streams; no fixed GPU or VRAM target is specified.

The v1.0.0 release separates implementation and annotations into DriveStreamBench-code-v1.0.0.zip and DriveStreamBench-data-v1.0.0.zip. Prepare data with scripts/prepare_data.sh or install a downloaded annotation archive using scripts/download_data.py --archive. That prepares the benchmark data, but source media still need to be obtained separately and prepared as frames for --dataroot. The installed OOD source list and preprocessing guide describe a separate input preparation path.

Causal replay: models see only frames available at each decision point and return ALERT or NO REPLY.
L4 cadence: the default protocol samples at 2 FPS and makes one decision per second; the demo's 4 FPS playback is not the inference setting.
Time alignment: scoring maps 10 FPS reference frames onto the sampled-frame grid; use --fps 1 for native 1 FPS runs.
Scenario reporting: Core Macro averages AlertScore@2s across S1–S5 and reports S6 separately.
Run artifacts: drivestreambench.inference.run_l4 writes prediction JSONL and a separate manifest, while scripts/evaluate.py writes score JSON.
Dataset scope: v1.0.0 ships 26,853 L1–L4 annotation records, with source media distributed separately.
Best For

VLM researchers and model teams comparing instruction-driven alert behavior on a shared driving-video protocol with causal inputs, timing-aware scoring, and per-scenario reporting.

Skip If

You need a production notification service, end-to-end latency or safety validation, or a turnkey benchmark with source media and model weights bundled.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodologyReport inaccuracy

Quick Start & Installation

CLIGPU
python -m pip install -e '.[test]'
bash scripts/run_smoke_test.sh

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
DriveStreamBench ★58+57PythonApache-2.0Python benchmark for instruction-driven alerts in causal driving video streams
guidellm1.8k+9PythonApache-2.0A Python benchmark client for measuring LLM serving capacity against latency SLO
openevals1.3k+2PythonMITPython and TypeScript judge factories for testing LLM application outputs
FrontierVideo252+236JavaScriptApache-2.0Harbor benchmark for coding agents that render video and deliver editable projec

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/AMAP-ML/DriveStreamBench.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

AMAP-ML/DriveStreamBench Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about DriveStreamBench

How do I integrate a model without rewriting the scorer?

Use the adapters described in docs/models.md, or produce predictions that match the evaluation format and parser in docs/evaluation.md. The L4 runner writes prediction JSONL and a separate manifest; scripts/evaluate.py scores the annotations against the predictions. Preserve causal frame access, decision timing, and the sampling rate when integrating a new model.

Do I need a GPU, and how should I size it?

Scoring and the example run work on CPU. The demonstrated local VLM path uses Qwen3-VL-8B-Instruct, but there is no fixed VRAM requirement or throughput figure. Start with a representative clip and one stream, measure peak VRAM and processing time, then test the intended concurrency. The benchmark's 2 FPS input and one-decision-per-second schedule do not guarantee real-time execution.

Can I self-host this for commercial evaluation?

Apache-2.0 covers the benchmark code and permits commercial use and self-hosting subject to its terms. Source media are acquired separately under provider terms, and model weights are outside the release. Check annotation terms, media access and redistribution rights, model licensing, and any API data-handling obligations independently before an internal or commercial deployment.

When is this preferable to a generic VLM evaluator or a custom replay harness?

Choose DriveStreamBench when the comparison needs the same driving instructions, causal inputs, alert timing, and scenario aggregation across models. A general video QA harness is a better fit for broad clip understanding, while a custom event-replay harness is preferable if you need your own inputs, alert semantics, or end-to-end latency measurements and can maintain the evaluation protocol yourself.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining AMAP-ML/DriveStreamBench? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature AMAP-ML/DriveStreamBench on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare