Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Doc Parsing Benchmark

Benchmark and deployment toolkit for document parsing models on Windows, with unified output formatting and official-rule evaluation for OmniDocBench and MDPBench.

Start Here

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

Scope

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, and meta.json
  • resilient per-page batch execution
  • official scoring wrappers for OmniDocBench and MDPBench
  • leaderboard summarization across multiple models

Supported Models

  • MinerU-2.5-VLM
  • PP-StructureV3
  • HunyuanOCR
  • MonkeyOCR v1.5
  • PaddleOCR-VL-1.5
  • olmOCR2

Supported Benchmarks

  • 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.

Repository Layout

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

Included

  • benchmark orchestration scripts
  • resilient batch runners for multiple models
  • built-in manifests for "resilient" and "lite" benchmark profiles
  • deployment notes
  • benchmark workflow notes

Not Included

  • model weights
  • datasets
  • upstream benchmark repositories
  • local caches
  • virtual environments
  • benchmark raw outputs, logs, and intermediate artifacts

Expected Local Layout

The scripts assume this repository is the workspace root. Create these folders locally as needed:

  • datasets/
  • repos/
  • venvs/
  • cache/
  • benchmark/, benchmark_quick_resilient/, and benchmark_quick_lite/

Benchmark Profiles

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/.

Quick Start

Load the shared cache environment:

Set-ExecutionPolicy -Scope Process Bypass -Force
. .\scripts\Set-OcrEnv.ps1

Run the main benchmark pipeline:

.\venvs\bench\Scripts\python.exe .\scripts\run_benchmark_pipeline.py

Run the full / long profile:

.\scripts\launch_benchmark_full.cmd

Run the resilient / medium profile:

.\scripts\launch_benchmark_quick_resilient.cmd

Run the lite / short profile:

.\scripts\launch_benchmark_quick_lite.cmd

If 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.cmd

For 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.

Unified Output Format

Each sample is normalized into:

<run_root>/<sample_id>/
  result.md
  result.json
  meta.json
  • result.md: markdown used by end-to-end scorers
  • result.json: unified machine-readable prediction record
  • meta.json: runtime metadata, success/failure state, and execution info

Notes

  • This repository is currently Windows / PowerShell oriented.
  • Official dataset scorers must be cloned separately under repos/.
  • The leaderboard rank_score is a local sorting score, not an official benchmark metric.
  • Use each score directory as the source of truth for raw benchmark outputs.

Documentation

Lite Benchmark Results

Score Scale

  • Rank Score: local aggregate in the range 0.0-1.0; 1.0 is the best possible score in this repository's leaderboard.
  • Text Block: normalized edit-distance style error in the range 0.0-1.0; 0.0 is ideal.
  • Reading Order: normalized edit-distance style error in the range 0.0-1.0; 0.0 is ideal.
  • Table TEDS: structural similarity in the range 0.0-1.0; 1.0 is ideal.
  • Formula: normalized edit-distance style error in the range 0.0-1.0; 0.0 is 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.

OmniDocBench Lite

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

MDPBench Lite

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

Summary

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.

Takeaway

  • 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
  • MonkeyOCR improved materially after switching to full parsing output; it now ranks above PP-StructureV3 on OmniDocBench Lite, but it is still the weakest overall result across the two lite sets

PP-StructureV3 vs PaddleOCR-VL-1.5

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 possible 1.0
  • Text Block: 0.0-1.0, ideal 0.0
  • Reading Order: 0.0-1.0, ideal 0.0
  • Table TEDS: 0.0-1.0, ideal 1.0
  • Formula: 0.0-1.0, ideal 0.0

Side-by-Side

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

Practical Reading

  • Choose PaddleOCR-VL-1.5 when overall document quality matters most, especially for text fidelity, table recovery, and formula-heavy pages.
  • Choose PP-StructureV3 when 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.5 is the stronger default choice; PP-StructureV3 is the lighter alternative rather than the higher-scoring one.

Recommended GitHub Description

Benchmark and deployment toolkit for document parsing models with OmniDocBench and MDPBench evaluation.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages