opendatalab/OmniDocBench / skills
omnidocbench-eval-helper
VerifiedHelp users deploy, validate, run, and parse OmniDocBench evaluations. Use this skill whenever the user mentions OmniDocBench, document parsing/OCR benchmark scoring, MinerU or other model evaluation on OmniDocBench, CDM formula metrics, end2end/md2md configs, Docker/conda deployment, remote SSH/H-cluster execution, result JSON parsing, or troubleshooting TeX Live/ImageMagick/Ghostscript/Docker/worker/OOM issues. Prefer Docker first, generate concrete commands from the user's paths, validate inputs before running, and report final Overall/Text/Formula/Table/Reading-order scores with result file paths.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 15.8 KB |
| scripts/generate_end2end_config.py | script | 2.3 KB |
| scripts/parse_results.py | script | 4.9 KB |
scripts/generate_end2end_config.py
View on GitHub#!/usr/bin/env python3
"""Generate an OmniDocBench end2end config for community users."""
import argparse
from pathlib import Path
import yaml
def main():
parser = argparse.ArgumentParser(description="Generate configs/custom_end2end.yaml for OmniDocBench.")
parser.add_argument("--gt", required=True, help="Ground-truth OmniDocBench JSON path as seen by the runtime")
parser.add_argument("--pred", required=True, help="Prediction markdown folder path as seen by the runtime")
parser.add_argument("--out", default="configs/custom_end2end.yaml", help="Output YAML path")
parser.add_argument("--workers", type=int, default=4, help="Worker count for match/CDM/TEDS stages")
parser.add_argument("--no-cdm", action="store_true", help="Disable CDM to avoid TeX/ImageMagick/Ghostscript requirements")
args = parser.parse_args()
if args.workers < 1:
raise SystemExit("--workers must be >= 1")
display_formula_metrics = ["Edit_dist"] if args.no_cdm else ["Edit_dist", "CDM"]
config = {
"end2end_eval": {
"metrics": {
"text_block": {"metric": ["Edit_dist"]},
"display_formula": {"metric": display_formula_metrics},
"table": {"metric": ["TEDS", "Edit_dist"]},
"reading_order": {"metric": ["Edit_dist"]},
},
"dataset": {
"dataset_name": "end2end_dataset",
"ground_truth": {"data_path": args.gt},
"prediction": {"data_path": args.pred},
"match_method": "quick_match",
"match_workers": args.workers,
"quick_match_truncated_timeout_sec": 300,
"match_timeout_sec": 420,
"timeout_fallback_max_chunk_span": 10,
"timeout_fallback_order_penalty": 0.10,
},
}
}
if not args.no_cdm:
config["end2end_eval"]["metrics"]["display_formula"]["cdm_workers"] = args.workers
config["end2end_eval"]["metrics"]["table"]["teds_workers"] = args.workers
out_path = Path(args.out)
out_path.parent.mkdir(parents=True, exist_ok=True)
with out_path.open("w", encoding="utf-8") as f:
yaml.safe_dump(config, f, allow_unicode=True, sort_keys=False)
print(out_path)
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |