Skip to content
Back to skills

Doclaynet Layout Eval

ASecurity

Evaluates the ability of object detection models to accurately identify and localize 11 distinct document layout elements (e.g., text, tables, figures, headers) on scanned or digital document pages. It measures robustness across diverse, real-world document types and tests how data splitting strategies and label definitions impact prediction accuracy. Use when the user wants to benchmark on DocLayNet, or asks about evaluating this task. Reports mAP@0.5-0.95.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
researchpythongitapi

Works with

  • api

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill doclaynet-layout-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doclaynet Layout Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Doclaynet Layout Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-doclaynet-layout-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-doclaynet-layout-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: doclaynet-layout-eval
description: Evaluates the ability of object detection models to accurately identify and localize 11 distinct document layout elements (e.g., text, tables, figures, headers) on scanned or digital document pages. It measures robustness across diverse, real-world document types and tests how data splitting strategies and label definitions impact prediction accuracy. Use when the user wants to benchmark on DocLayNet, or asks about evaluating this task. Reports mAP@0.5-0.95.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2206.01062
  bibtex_key: [REDACTED]
  confidence: high
---

# doclaynet-layout-eval

> DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis — Pfitzmann et al. (2022) (arXiv:2206.01062, 2022)

## What this evaluates

Evaluates the ability of object detection models to accurately identify and localize 11 distinct document layout elements (e.g., text, tables, figures, headers) on scanned or digital document pages. It measures robustness across diverse, real-world document types and tests how data splitting strategies and label definitions impact prediction accuracy.

## Datasets

- **DocLayNet** — total 80863; splits: train (-1), val (-1), test (-1)

## Metrics

- `mAP@0.5-0.95` **(primary)** — range: [0, 1]
  - Mean Average Precision computed across 10 IoU thresholds ranging from 0.5 to 0.95 in steps of 0.05. Calculated using the official COCO API evaluation code.

## Input / output format

**Input**: RGB document page images resized to 1025×1025 pixels.

**Output**: Bounding box coordinates (x, y, width, height) and class labels for each detected layout element.

## Scoring recipe

```python
coco_gt = COCO()  # Load ground-truth annotations in COCO format
coco_dt = coco_gt.loadRes(predictions)  # Load model predictions
coco_eval = COCOeval(coco_gt, coco_dt, 'bbox')
coco_eval.params.iouThrs = np.arange(0.50, 0.96, 0.05)
coco_eval.evaluate()
coco_eval.accumulate()
mAP = coco_eval.summarize()  # Returns average precision over IoU range
```

## Common pitfalls

- Using a random page-wise train/test split instead of a document-wise split artificially inflates mAP by ~10% due to style leakage across splits.
- Merging or down-mapping layout classes (e.g., grouping paragraphs or dropping headers) before training significantly alters mAP scores and complicates cross-dataset comparison.
- Evaluating on different label sets without standardizing class mappings leads to incomparable mAP results across datasets like PubLayNet and DocBank.

## Evidence (verbatim from paper)

> Similarly as in PubLayNet, we will evaluate the quality of their predictions using mean average precision (mAP) with 10 overlaps that range from 0.5 to 0.95 in steps of 0.05 (mAP@0.5-0.95). These scores are computed by leveraging the evaluation code provided by the COCO API.

## Citation

```bibtex
@misc{pfitzmann2022doclaynet,
  title={DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis},
  author={Pfitzmann et al. (2022)},
  year={2022},
  note={arXiv:2206.01062}
}
```

- arXiv: 2206.01062

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.