Downloads · 30 days
0
scienceverse/bibr-layout-onnx
bibr-layout-onnx is a object detection model from scienceverse. Use it when you need objects located in an image. It is set up for onnxruntime. The card lists the license as apache-2.0.
An ONNX Runtime export of PaddlePaddle/PP-DocLayoutV3safetensors (revision 97d101e6db2642e162a1d05392d1b0231c91033e), published so that bibr can detect page layout without installing PyTorch.
Downloads · 30 days
0
Access
Public
Updated Sep 3, 2026
Repo size
134 MB
Likes
1
Public
Click a slice to open those files.
.onnx134 MB · 100%
From the Hugging Face model README
An ONNX Runtime export of PaddlePaddle/PP-DocLayoutV3_safetensors
(revision 97d101e6db2642e162a1d05392d1b0231c91033e), published so that
bibr can detect page layout without
installing PyTorch.
bibr loads this bundle when ML_RUNTIME=onnx (or auto with no torch present).
The core install needs only onnxruntime; preprocessing is reimplemented in numpy
against the preprocessing block of onnx/bibr_onnx.json.
| File | Purpose |
|---|---|
onnx/model.onnx | opset 17 graph, pixel_values [batch, 3, 800, 800] → logits, pred_boxes (cxcywh, normalized), order_logits |
onnx/bibr_onnx.json | preprocessing parameters, IO signature, and the exact source revision and toolchain |
Checked against the PyTorch model on validation pages: 112 regions across 6 pages, 0 pages differing, maximum bounding-box delta 0.
The 2D sinusoidal position embedding is folded into a constant at export time —
it is computed in float64, and ONNX Runtime has no float64 Sin/Cos kernel, so
the traced graph would otherwise fail to load.
Image resizing must match torchvision's uint8 bicubic path, which rounds and saturates between the horizontal and vertical passes. Matching float bicubic instead shifts pixels by up to 20 grey levels and changes the detected regions.
Apache-2.0, inherited from the upstream model. This repository redistributes a format conversion; the weights and the original work are PaddlePaddle's.