
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
docling-project/docling-layout-egret-medium
Advanced tools
🚀 egret-medium is a Document Layout Analysis Model used in the Docling project.
📄 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
Prerequisites:
pip install transformers Pillow torch requests
Prediction:
import requests
from transformers import (
DFineForObjectDetection,
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-egret-medium"
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 = DFineForObjectDetection.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}")
@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}
}
Add technical report link and text improvements (#3)
Add technical report link and text improvements (#3)
2026-01-05 · by nlivathinos · 9fe64f8
- docs: Add technical report link and text improvements (97804b7134c7c43b3897be6fd48b1d51e2cf9f31)
docs: Minor fix for Readme.md
2025-07-02 · by Nikos Livathinos · 529d80f
Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com>
Update Readme with demo code (#2)
2025-07-02 · by nlivathinos · fd1060c
- docs: Update Readme with demo code (9b9b84def71265429fc43db45623784309079d52)
train-DLNv1_DLNv2_WS2013_NoTables (#1)
2025-07-02 · by nlivathinos · 9bce935
- feat: Initial commit with trained docling-layout-egret-medium based on DFINE-m (83bc3b7fe294c5bbcf2ea6c8b590f873da2b5df5)
initial commit
2025-07-02 · by nlivathinos · 1788925
FAQs
Unknown package
We found that docling-project/docling-layout-egret-medium demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.