Benchmark and deployment toolkit for document parsing models on Windows, with unified output formatting and official-rule evaluation for OmniDocBench and MDPBench.
| If you want to... | Go here |
|---|---|
| understand what this repo contains | Scope |
| deploy models and prepare the local environment | README_DEPLOY.md |
| run the full / long benchmark | scripts/launch_benchmark_full.cmd |
| run the resilient / medium benchmark | scripts/launch_benchmark_quick_resilient.cmd |
| run the lite / short benchmark | scripts/launch_benchmark_quick_lite.cmd |
| inspect built-in sampled manifests | manifests/resilient/ and manifests/lite/ |
| understand the benchmark workflow and outputs | README_BENCHMARK.md |
| check the published lite comparison table | Lite Benchmark Results |
This repository is for local evaluation of document parsing systems rather than plain text-only OCR. It covers:
- model deployment with ASCII-only cache paths
- unified output formatting into
result.md,result.json, andmeta.json - resilient per-page batch execution
- official scoring wrappers for OmniDocBench and MDPBench
- leaderboard summarization across multiple models
- MinerU-2.5-VLM
- PP-StructureV3
- HunyuanOCR
- MonkeyOCR v1.5
- PaddleOCR-VL-1.5
- olmOCR2
- OmniDocBench
- MDPBench
The pipeline is designed for end-to-end document parsing comparisons, including text blocks, reading order, table recovery, and formula-related metrics exposed by the official scorers.
scripts/
Set-OcrEnv.ps1
launch_benchmark_full.cmd
launch_benchmark_quick_resilient.cmd
launch_benchmark_quick_lite.cmd
run_benchmark_pipeline.py
run_*_batch.py
standardize_predictions.py
score_with_official.py
summarize_leaderboard.py
manifests/
resilient/
omnidocbench_sample_manifest.json
mdpbench_sample_manifest.json
lite/
omnidocbench_sample_manifest.json
mdpbench_sample_manifest.json
README_DEPLOY.md
README_BENCHMARK.md
- benchmark orchestration scripts
- resilient batch runners for multiple models
- built-in manifests for "resilient" and "lite" benchmark profiles
- deployment notes
- benchmark workflow notes
- model weights
- datasets
- upstream benchmark repositories
- local caches
- virtual environments
- benchmark raw outputs, logs, and intermediate artifacts
The scripts assume this repository is the workspace root. Create these folders locally as needed:
datasets/repos/venvs/cache/benchmark/,benchmark_quick_resilient/, andbenchmark_quick_lite/
The repository exposes three ready-to-find benchmark profiles:
| Profile | Typical use | Dataset scope | Built-in manifest | Launcher | Output root |
|---|---|---|---|---|---|
| Full / Long | final benchmark run | full OmniDocBench + full MDPBench | not needed | scripts/launch_benchmark_full.cmd |
benchmark/ |
| Resilient / Medium | broader sampled comparison | 150 OmniDocBench pages + 150 MDPBench pages | manifests/resilient/ |
scripts/launch_benchmark_quick_resilient.cmd |
benchmark_quick_resilient/ |
| Lite / Short | fastest smoke benchmark | 80 OmniDocBench pages + 24 MDPBench pages | manifests/lite/ |
scripts/launch_benchmark_quick_lite.cmd |
benchmark_quick_lite/ |
Only the sampled profiles ship with versioned manifests. The full profile reads directly from the full datasets under datasets/.
Load the shared cache environment:
Set-ExecutionPolicy -Scope Process Bypass -Force
. .\scripts\Set-OcrEnv.ps1Run the main benchmark pipeline:
.\venvs\bench\Scripts\python.exe .\scripts\run_benchmark_pipeline.pyRun the full / long profile:
.\scripts\launch_benchmark_full.cmdRun the resilient / medium profile:
.\scripts\launch_benchmark_quick_resilient.cmdRun the lite / short profile:
.\scripts\launch_benchmark_quick_lite.cmdIf your benchmark Python is not under .\venvs\bench\Scripts\python.exe, set OCR_BENCH_PYTHON first:
$env:OCR_BENCH_PYTHON = 'D:\path\to\python.exe'
.\scripts\launch_benchmark_quick_lite.cmdFor custom sampled subsets, generate your own manifest files with scripts/sample_benchmark_manifest.py and pass them through scripts/run_benchmark_pipeline.py --manifest-root ... --use-sampled-manifests.
Each sample is normalized into:
<run_root>/<sample_id>/
result.md
result.json
meta.json
result.md: markdown used by end-to-end scorersresult.json: unified machine-readable prediction recordmeta.json: runtime metadata, success/failure state, and execution info
- This repository is currently Windows / PowerShell oriented.
- Official dataset scorers must be cloned separately under
repos/. - The leaderboard
rank_scoreis a local sorting score, not an official benchmark metric. - Use each score directory as the source of truth for raw benchmark outputs.
- Deployment notes: README_DEPLOY.md
- Benchmark workflow: README_BENCHMARK.md
Rank Score: local aggregate in the range0.0-1.0;1.0is the best possible score in this repository's leaderboard.Text Block: normalized edit-distance style error in the range0.0-1.0;0.0is ideal.Reading Order: normalized edit-distance style error in the range0.0-1.0;0.0is ideal.Table TEDS: structural similarity in the range0.0-1.0;1.0is ideal.Formula: normalized edit-distance style error in the range0.0-1.0;0.0is ideal.
rank_score is computed as the average of:
(1 - text_block) + (1 - reading_order) + table_teds + (1 - formula)
-------------------------------------------------------------------
4
So a higher rank_score is better, but it is still a local summary score rather than an official single benchmark metric.
| Rank | Model | Rank Score | Text Block | Reading Order | Table TEDS | Formula |
|---|---|---|---|---|---|---|
| 1 | HunyuanOCR | 0.9537 | 0.0534 | 0.0000 | 0.9869 | 0.1186 |
| 2 | PaddleOCR-VL | 0.9274 | 0.0416 | 0.0361 | 0.9027 | 0.1155 |
| 3 | MinerU | 0.8967 | 0.0700 | 0.0581 | 0.9189 | 0.2042 |
| 4 | MonkeyOCR | 0.8818 | 0.0738 | 0.0803 | 0.8996 | 0.2183 |
| 5 | PP-StructureV3 | 0.8610 | 0.1111 | 0.0696 | 0.8234 | 0.1988 |
| Rank | Model | Rank Score | Text Block | Reading Order | Table TEDS | Formula |
|---|---|---|---|---|---|---|
| 1 | PaddleOCR-VL | 0.7690 | 0.2248 | 0.1604 | 0.7988 | 0.3375 |
| 2 | PP-StructureV3 | 0.6734 | 0.3278 | 0.1538 | 0.5142 | 0.3391 |
| 3 | MinerU | 0.6279 | 0.3214 | 0.2697 | 0.6563 | 0.5536 |
| 4 | HunyuanOCR | 0.5390 | 0.3581 | 0.3648 | 0.3797 | 0.5006 |
| 5 | MonkeyOCR | 0.4869 | 0.3931 | 0.3299 | 0.2508 | 0.5800 |
| Dataset | Winner | Runner-up | Notes |
|---|---|---|---|
| OmniDocBench Lite | HunyuanOCR | PaddleOCR-VL | HunyuanOCR led on the aggregate score; PaddleOCR-VL stayed very close. |
| MDPBench Lite | PaddleOCR-VL | PP-StructureV3 | PaddleOCR-VL was still the strongest cross-scene result; PP-StructureV3 ranked second on this set. |
- Overall most stable:
PaddleOCR-VL - Best on OmniDocBench Lite:
HunyuanOCR - PP-StructureV3 sits between PaddleOCR-VL and the older second-tier models in this lite run
- Solid second-tier overall:
MinerU MonkeyOCRimproved materially after switching to full parsing output; it now ranks abovePP-StructureV3on OmniDocBench Lite, but it is still the weakest overall result across the two lite sets
This repository now includes lite benchmark results for both PP-StructureV3 and PaddleOCR-VL-1.5.
Score ranges are the same as above:
Rank Score:0.0-1.0, best possible1.0Text Block:0.0-1.0, ideal0.0Reading Order:0.0-1.0, ideal0.0Table TEDS:0.0-1.0, ideal1.0Formula:0.0-1.0, ideal0.0
| Dataset | Model | Rank Score | Text Block | Reading Order | Table TEDS | Formula |
|---|---|---|---|---|---|---|
| OmniDocBench Lite | PaddleOCR-VL-1.5 | 0.9274 | 0.0416 | 0.0361 | 0.9027 | 0.1155 |
| OmniDocBench Lite | PP-StructureV3 | 0.8610 | 0.1111 | 0.0696 | 0.8234 | 0.1988 |
| MDPBench Lite | PaddleOCR-VL-1.5 | 0.7690 | 0.2248 | 0.1604 | 0.7988 | 0.3375 |
| MDPBench Lite | PP-StructureV3 | 0.6734 | 0.3278 | 0.1538 | 0.5142 | 0.3391 |
- Choose
PaddleOCR-VL-1.5when overall document quality matters most, especially for text fidelity, table recovery, and formula-heavy pages. - Choose
PP-StructureV3when you want a more classical document parsing pipeline with stronger engineering-oriented structure output and lower runtime cost on modest GPUs. - In this lite run,
PaddleOCR-VL-1.5is the stronger default choice;PP-StructureV3is the lighter alternative rather than the higher-scoring one.
Benchmark and deployment toolkit for document parsing models with OmniDocBench and MDPBench evaluation.