db_resnet50 + crnn_vgg16_bn, the OnnxTR exports, run by
onnxruntime-web on WebGPU or WebAssembly. Everything around the two forward passes —
the resize, the normalisation, the DB postprocessor, the crop geometry, the CTC decode and the
document builder — is doctr-demo's own code, vendored
byte-for-byte. So any difference between the two sites on the same machine is the inference
engine, and nothing else.
| base | — |
| db_resnet50 | 100.9 MB |
| crnn_vgg16_bn | 63.2 MB |
.onnx files are served from
R2 and fetched cross-origin with CORS. They are cached in the page's own Cache API bucket
(onnx-demo-models-v1) afterwards, so a reload is instant.
Append ?models=/models/ to run against a local copy.
| onnxruntime-web | 1.29.0 |
| ORT build | — |
| EP requested | — |
| EP that started | — |
| db_resnet50 nodes | — |
| crnn nodes | — |
| WebGPU adapter | — |
| wasm threads | — |
| crossOriginIsolated | — |
| SharedArrayBuffer | — |
| hardwareConcurrency | — |
doctr-native/test/fixtures/sample.png — the page both projects' 660-word
parity numbers were measured on. PDF is not supported,
for the same reason it is not on doctr-demo: rasterising one in a page would mean a JS PDF parser.
Orgnal for “Original”,
Tor for “for”, and the GSTIN as 06AAHCM7396M:2P where the page reads
“06AAHCM7396M1ZP”. A score of 407/407 means REPRODUCED DOCTR EXACTLY.
It does not mean the page was read correctly.
visibilitychange. A run that was ever hidden is marked THROTTLED, not
averaged in. The page refuses to start if the tab is not visible at click time.
verifying the fixtures…
press quick — a pre-flight pass measures this machine before committing it to anything
4 blocks per click: wasm/clean, wasm/scan, webgpu/clean, webgpu/scan.
quick recognises the first 64 tiles of each block; full recognises every tile and is
the only mode comparable with the numbers already recorded for this project.
full is not the mode for a slow machine — on a Core M it is minutes per block, and a fanless
machine will thermally throttle inside a run that long, which the receipt's noise-floor line shows
as a rising detect rather than hides.