Skip to main content

Overview

Generate complete benchmark datasets by combining multiple documents with multiple photo variations. Every photo comes with ground truth, verification results, and an occlusion manifest.

Verified Dataset Generation

The generate_verified_dataset() function produces a full dataset from a single document:

Output Structure

Dataset Summary

The dataset_summary.json tracks overall results:

Benchmark Matrix: N Docs x M Variations

To create a larger benchmark, loop over multiple documents:
Each photo generation requires a Gemini API call, and verification requires an additional call. Budget approximately 2 API calls per photo (generation + extraction), plus retries for mismatches.

Progress Tracking

The generators print progress to stdout: