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

← All models

Aryn_deformable-detr-DocLayNet

Aryn · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: 1 · Leechers: 0

Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.

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 tags:


Deformable DETR model trained on DocLayNet

Deformable DEtection TRansformer (DETR), trained on DocLayNet (including 80k annotated pages in 11 classes).

You can use this model in the serverless Aryn Partitioning Service. You can get started here

Model description

The DETR model is an encoder-decoder transformer with a convolutional backbone. Two heads are added on top of the decoder outputs in order to perform object detection: a linear layer for the class labels and a MLP (multi-layer perceptron) for the bounding boxes. The model uses so-called object queries to detect objects in an image. Each object query looks for a particular object in the image. For COCO, the number of object queries is set to 100.

The model is trained using a "bipartite matching loss": one compares the predicted classes + bounding boxes of each of the N = 100 object queries to the ground truth annotations, padded up to the same length N (so if an image only contains 4 objects, 96 annotations will just have a "no object" as class and "no bounding box" as bounding box). The Hungarian matching algorithm is used to create an optimal one-to-one mapping between each of the N queries and each of the N annotations. Next, standard cross-entropy (for the classes) and a linear combination of the L1 and generalized IoU loss (for the bounding boxes) are used to optimize the parameters of the model.

Intended uses & limitations

You can use the raw model for object detection. See the model hub to look for all available Deformable DETR models.

How to use

Here is how to use this model:

from transformers import AutoImageProcessor, DeformableDetrForObjectDetection
import torch
from PIL import Image
import requests

url = "https://huggingface.co/Aryn/deformable-detr-DocLayNet/resolve/main/examples/doclaynet_example_1.png"
image = Image.open(requests.get(url, stream=True).raw)

processor = AutoImageProcessor.from_pretrained("Aryn/deformable-detr-DocLayNet")
model = DeformableDetrForObjectDetection.from_pretrained("Aryn/deformable-detr-DocLayNet")

inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)

# convert outputs (bounding boxes and class logits) to COCO API
# let's only keep detections with score > 0.7
target_sizes = torch.tensor([image.size[::-1]])
results = processor.post_process_object_detection(outputs, target_sizes=target_sizes, threshold=0.7)[0]

for score, label, box in zip(results["scores"], results["labels"], results["boxes"]):
    box = [round(i, 2) for i in box.tolist()]
    print(
            f"Detected {model.config.id2label[label.item()]} with confidence "
            f"{round(score.item(), 3)} at location {box}"
    )

Evaluation results

This model achieves 57.1 box mAP on DocLayNet.

Training data

The Deformable DETR model was trained on DocLayNet. It was introduced in the paper DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis by Pfitzmann et al. and first released in this repository.

BibTeX entry and citation info

@misc{https://doi.org/10.48550/arxiv.2010.04159,
  doi = {10.48550/ARXIV.2010.04159},
  url = {https://arxiv.org/abs/2010.04159}, 
  author = {Zhu, Xizhou and Su, Weijie and Lu, Lewei and Li, Bin and Wang, Xiaogang and Dai, Jifeng},
  keywords = {Computer Vision and Pattern Recognition (cs.CV), FOS: Computer and information sciences, FOS: Computer and information sciences},
  title = {Deformable DETR: Deformable Transformers for End-to-End Object Detection},
  publisher = {arXiv},
  year = {2020},
  copyright = {arXiv.org perpetual, non-exclusive license}
}

Magnet link

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

magnet:?xt=urn:btih:3c53670ac1c522d7c8e721723eeedbf88f197561&dn=Aryn_deformable-detr-DocLayNet

Open magnet in torrent client · infohash 3c53670ac1c522d7c8e721723eeedbf88f197561

Files & hashes

PathSizesha1sha256
README.md4.4 KB (4,551 B)77c77807a11c1d47e754a6d1a3fb189324bbbd2d8e33e46f2a9998656103c130aab591d60c0a89a4cfe027bcd2d8dcaa26057c8e
config.json1.8 KB (1,822 B)336bffe566b8f4302e1591f49056b5575d00adf501d2bd3356abd64b84b837294782b28a4052f1a36b19e3a9c7d84f75ee15d5e6
examples/doclaynet_example_1.png393.7 KB (403,143 B)fe22505bffa6065b6b08ecca6f220013a4df0fe1b5ae60aa4ce56c07ad2703ac75a9b1184febeb4d6423b95197a036a9b72833ee
examples/doclaynet_example_2.png183.3 KB (187,660 B)6df608f88abe5939d044752c0206ef66e1b49ee11d6a44af73f0c36563d9f53d810eee9b0a53ba662be91b2218ab4f6d4b0c62d9
examples/doclaynet_example_3.png514.9 KB (527,247 B)0a4a5aae7297ed44559aeef6ded40916709a68a3f0d672874fa4020e257d423718fb40a0de423a46dc2a0bd281a934ac2df248c7
model.safetensors157.0 MB (164,653,696 B)72eebcba6f84db5443b1511eaeda6c3fc7337ed2e3861d34685d3b36e5f38370597daf98fb2f98a852cfa5c125035057ded06809
preprocessor_config.json300 B (300 B)10914b698aebf532e26b4021eea20136207889436eb5442e705395d5b9699782b18668733f81ba9f8f81729be33ca3526fd43641

Cite this release

Canonical URL
https://aiseedbank.org/models/Aryn_deformable-detr-DocLayNet/
Slug
Aryn_deformable-detr-DocLayNet
Infohash
3c53670ac1c522d7c8e721723eeedbf88f197561
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: Aryn_deformable-detr-DocLayNet.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryAryn/deformable-detr-DocLayNet
Revision (pinned)d5503a90ae08dd43565de6984a5dd7924cad2400
Fetched at2026-09-02T04:23:49Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:23:53Z

apache-2.0158.1 MB (165,778,419 bytes)transformerssafetensorsdeformable_detrobject-detectionvisionendpoints_compatiblepaper: 2206.01062paper: 2010.04159