Downloads · 30 days
2
10% of all-time downloads
rageyu/platen2-pdf-table
platen2-pdf-table is a machine learning model from rageyu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
PaddleOCR's SLANetplus table-structure model, converted to Core ML for use on Apple platforms. Given an image of a table it returns the table's structure tokens (<td, <td colspan="4", <tr…) and one bounding quadrilate…
Downloads · 30 days
2
10% of all-time downloads
All-time downloads
20
Public
Repo size
12.5 MB
Likes
0
Public
Click a slice to open those files.
.bin7.7 MB · 62%
From the Hugging Face model README
PaddleOCR's SLANet_plus table-structure model, converted to Core ML for use
on Apple platforms. Given an image of a table it returns the table's structure
tokens (<td>, <td colspan="4">, <tr>…) and one bounding quadrilateral per
cell. It reads no text. In Platen2 the cell text comes from the PDF's own
text layer, so no character in a rendered table is authored by a model.
| Input | 1×3×488×488, BGR, ImageNet mean/std applied by position |
| Outputs | loc [1,501,8] cell quads · structure [1,501,50] token logits |
| Size | 12 MB (fp32) |
| Speed | ~42 ms per table on an M5 Max |
Converted from slanet-plus.onnx as published by
RapidAI/RapidTable, which is itself an
ONNX export of PaddleX's SLANet_plus. The weights are unmodified; what
changed is the serialisation:
Loop was unrolled to its own 501-step bound, because
Core ML has no loop construct for itVerified against the ONNX original on 23 real table regions: identical structure token sequences on all 23, worst cell-box delta 0.005 px.
structure reports shape [1,501,50]
with strides [32064,64,1]. Read by stride, not as a tight buffer.user_defined_metadata["structure_tokens"].Apache License 2.0, inherited from PaddlePaddle. Copyright (c) PaddlePaddle Authors. ONNX export by RapidAI. Converted to Core ML by tekl; weights unmodified, serialisation changed as described above.