Downloads · 30 days
4
13% of all-time downloads
rageyu/platen2-pdf-doclayout
platen2-pdf-doclayout is a object detection model from rageyu. Use it when you need objects located in an image. The card lists the license as apache-2.0.
Baidu's PP-DocLayoutV2 document-layout detector, converted to Core ML. One RT-DETR forward pass over a page image returns 300 candidate regions across 25 classes — including algorithm, referencecontent, abstract and d…
Downloads · 30 days
4
13% of all-time downloads
All-time downloads
30
Public
Repo size
65.1 MB
Likes
0
Public
Click a slice to open those files.
.bin64.5 MB · 98%
From the Hugging Face model README
Baidu's PP-DocLayoutV2 document-layout detector, converted to Core ML. One
RT-DETR forward pass over a page image returns 300 candidate regions across 25
classes — including algorithm, reference_content, abstract and
display_formula, which is why it is useful where a coarser vocabulary is not.
| Input | 1×3×800×800, RGB, values 0–1 (no mean/std) |
| Outputs | logits [1,300,25] · boxes [1,300,4] cxcywh, page-normalised |
| Size | 63 MB (fp16) |
| Speed | ~14 ms per page on an M5 Max |
Detection only. PP-DocLayoutV2 also carries a reading-order head; it is not included here, and reading order should come from the document's own text layer.
Converted from PaddlePaddle/PP-DocLayoutV2, the publisher's own release. The weights are unmodified. That repo publishes a Paddle inference export rather than a checkpoint, so the deploy form was carried across as-is: RepVGG blocks stay folded, q/k/v stays one fused projection, and the auxiliary classification heads are pruned to the one the detection path reads.
Two rewrites were needed for Core ML, neither touching a weight:
sampling_locations is built rather than aftertext,
paragraph_title, doc_title and the formula classes clear at 0.4, seal at
0.45, everything else at 0.5.Apache License 2.0, inherited from PaddlePaddle. Copyright (c) PaddlePaddle Authors. Converted to Core ML by tekl; weights unmodified, serialisation and graph form changed as described above.