AI SeedbankHelp preserve open and free AI for humanity's future

← All models

docling-project_docling-layout-heron

docling-project · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: apache-2.0

Document Layout Analysis "heron"

🚀 heron is the default layout analysis model of the Docling project, designed for robust and high-quality document layout understanding.

📄 For an in-depth description of the model architecture, training datasets, and evaluation methodology, please refer to our technical report: "Advanced Layout Analysis Models for Docling", Nikolaos Livathinos et al., 🔗 https://arxiv.org/abs/2509.11720

Inference code example

Prerequisites:

pip install transformers Pillow torch requests

Prediction:

import requests
from transformers import RTDetrV2ForObjectDetection, RTDetrImageProcessor
import torch
from PIL import Image


classes_map = {
    0: "Caption",
    1: "Footnote",
    2: "Formula",
    3: "List-item",
    4: "Page-footer",
    5: "Page-header",
    6: "Picture",
    7: "Section-header",
    8: "Table",
    9: "Text",
    10: "Title",
    11: "Document Index",
    12: "Code",
    13: "Checkbox-Selected",
    14: "Checkbox-Unselected",
    15: "Form",
    16: "Key-Value Region",
}
image_url = "https://huggingface.co/spaces/ds4sd/SmolDocling-256M-Demo/resolve/main/example_images/annual_rep_14.png"
model_name = "docling-project/docling-layout-heron"
threshold = 0.6


# Download the image
image = Image.open(requests.get(image_url, stream=True).raw)
image = image.convert("RGB")

# Initialize the model
image_processor = RTDetrImageProcessor.from_pretrained(model_name)
model = RTDetrV2ForObjectDetection.from_pretrained(model_name)

# Run the prediction pipeline
inputs = image_processor(images=[image], return_tensors="pt")
with torch.no_grad():
    outputs = model(**inputs)
results = image_processor.post_process_object_detection(
    outputs,
    target_sizes=torch.tensor([image.size[::-1]]),
    threshold=threshold,
)

# Get the results
for result in results:
    for score, label_id, box in zip(
        result["scores"], result["labels"], result["boxes"]
    ):
        score = round(score.item(), 2)
        label = classes_map[label_id.item()]
        box = [round(i, 2) for i in box.tolist()]
        print(f"{label}:{score} {box}")

References

@misc{livathinos2025advancedlayoutanalysismodels,
      title={advanced layout analysis models for docling},
      author={nikolaos livathinos and christoph auer and ahmed nassar and rafael teixeira de lima and maksym lysak and brown ebouky and cesar berrospi and michele dolfi and panagiotis vagenas and matteo omenetti and kasper dinkla and yusik kim and valery weber and lucas morin and ingmar meijer and viktor kuropiatnyk and tim strohmeyer and a. said gurbuz and peter w. j. staar},
      year={2025},
      eprint={2509.11720},
      archiveprefix={arxiv},
      primaryclass={cs.cv},
      url={https://arxiv.org/abs/2509.11720},
}

@techreport{Docling,
  author = {Deep Search Team},
  month = {8},
  title = {Docling Technical Report},
  url = {https://arxiv.org/abs/2408.09869v4},
  eprint = {2408.09869},
  doi = {10.48550/arXiv.2408.09869},
  version = {1.0.0},
  year = {2024}
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:f41003c8b15df837d86477bddc1d86d404bf0e61&dn=docling-project_docling-layout-heron

Open magnet in torrent client · infohash f41003c8b15df837d86477bddc1d86d404bf0e61

Files & hashes

PathSizesha1sha256
README.md3.1 KB (3,219 B)2c5b32c47fb9789ed49606988f58bc4741a731ab175700839bc7808eac6af1d0c23e4f483606ab2276fe01122f4093e61a1a65b6
config.json3.2 KB (3,268 B)98434d37ace2399b824d685b0795ab7a68e53dd2fdea30805ce2f5666b147fca941dcdd27ad468e27d6ed21902207d3da056a97d
docling_heron_400.png94.7 KB (96,925 B)d7a3a823e847c4b091ef0094bf9840129f167a62e7f78610372b32a7938e480d2c7fa1c3037ee170bd82282a5bd026232f6e6f9e
model.safetensors163.7 MB (171,658,996 B)365930bc8ac530ad063fdb513d5bd0f1464e1fd000333a43451945aaf89db8ca9c0a17e75d1537c17db60fdb91aa95f4c7929e0c
preprocessor_config.json444 B (444 B)fcdff16b42e5ebc51d28f59184490c6eff91a88bcd38cd59999e7a95d68e487fbe5132df3d4e5c32a0836add57e6126ba0c4eaf1

Cite this release

Canonical URL
https://aiseedbank.org/models/docling-project_docling-layout-heron/
Slug
docling-project_docling-layout-heron
Infohash
f41003c8b15df837d86477bddc1d86d404bf0e61
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: docling-project_docling-layout-heron.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorydocling-project/docling-layout-heron
Revision (pinned)8f39ad3c0b4c58e9c2d2c84a38465abf757272d8
Fetched at2026-09-03T22:23:18Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T22:23:22Z

apache-2.0163.8 MB (171,762,852 bytes)safetensorsrt_detr_v2paper: 2509.11720paper: 2408.09869