ds4sd / docling-layout-heron-101

huggingface.co
Total runs: 3.8K
24-hour runs: 0
7-day runs: 104
30-day runs: 104
Model's Last Updated: Tháng bảy 02 2025

Introduction of docling-layout-heron-101

Model Details of docling-layout-heron-101

THIS IS WORK IN PROGRESS

Docling Layout Model heron-101

docling-layout-heron-101 is a Document Layout Model based on RT-DETRv2 with ResNet-101 backbone.

The model has been trained from scratch on a mix of document datasets.

It is part of the Docling project .

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 = "ds4sd/docling-layout-heron-101"
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

@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}
}

@misc{lv2024rtdetrv2improvedbaselinebagoffreebies,
      title={RT-DETRv2: Improved Baseline with Bag-of-Freebies for Real-Time Detection Transformer},
      author={Wenyu Lv and Yian Zhao and Qinyao Chang and Kui Huang and Guanzhong Wang and Yi Liu},
      year={2024},
      eprint={2407.17140},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2407.17140},
}

Runs of ds4sd docling-layout-heron-101 on huggingface.co

3.8K
Total runs
0
24-hour runs
-57
3-day runs
104
7-day runs
104
30-day runs

More Information About docling-layout-heron-101 huggingface.co Model

More docling-layout-heron-101 license Visit here:

https://choosealicense.com/licenses/apache-2.0

docling-layout-heron-101 huggingface.co

docling-layout-heron-101 huggingface.co is an AI model on huggingface.co that provides docling-layout-heron-101's model effect (), which can be used instantly with this ds4sd docling-layout-heron-101 model. huggingface.co supports a free trial of the docling-layout-heron-101 model, and also provides paid use of the docling-layout-heron-101. Support call docling-layout-heron-101 model through api, including Node.js, Python, http.

docling-layout-heron-101 huggingface.co Url

https://huggingface.co/ds4sd/docling-layout-heron-101

ds4sd docling-layout-heron-101 online free

docling-layout-heron-101 huggingface.co is an online trial and call api platform, which integrates docling-layout-heron-101's modeling effects, including api services, and provides a free online trial of docling-layout-heron-101, you can try docling-layout-heron-101 online for free by clicking the link below.

ds4sd docling-layout-heron-101 online free url in huggingface.co:

https://huggingface.co/ds4sd/docling-layout-heron-101

docling-layout-heron-101 install

docling-layout-heron-101 is an open source model from GitHub that offers a free installation service, and any user can find docling-layout-heron-101 on GitHub to install. At the same time, huggingface.co provides the effect of docling-layout-heron-101 install, users can directly use docling-layout-heron-101 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

docling-layout-heron-101 install url in huggingface.co:

https://huggingface.co/ds4sd/docling-layout-heron-101

Url of docling-layout-heron-101

docling-layout-heron-101 huggingface.co Url

Provider of docling-layout-heron-101 huggingface.co

ds4sd
ORGANIZATIONS

Other API from ds4sd

huggingface.co

Total runs: 515.5K
Run Growth: 155.1K
Growth Rate: 30.08%
Updated:Tháng bảy 23 2025
huggingface.co

Total runs: 33.5K
Run Growth: 0
Growth Rate: 0.00%
Updated:Tháng Một 27 2025
huggingface.co

Total runs: 18
Run Growth: 0
Growth Rate: 0.00%
Updated:Tháng tám 11 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Tháng Mười 28 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Tháng sáu 02 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Tháng Mười 28 2025