OXR-1.0 ONNX
Offline ONNX Runtime export of SoMarkAI/OXR-1.0, source revision c708407f9d2b4df658f2543d9132b62bb7221df4. The recognition checkpoint SHA-256 is 795bb2f1faac579f58829913f2c606202531a96c1203e19ef7a70b103fb7ea51. The separate layout checkpoint comes from the same revision.
The recognition pipeline uses oxr-vision-448.onnx, oxr-text-embedding.onnx, oxr-indicators.f32 (four float32 vectors of length 1024), and oxr-language.onnx. Each ONNX graph is accompanied by its .onnx.data file. oxr-prompt.json contains the pinned prompt token IDs and image markers; tokenizer.json decodes the output. The language graph accepts prompt embeddings, a four-dimensional additive causal attention mask, position IDs, and 28 layers of key/value cache; it returns last-token logits and updated caches. The visual graph was traced for a fixed 448 × 448 image represented by 784 flattened 16 × 16 RGB patches (float32[784,768], grid [[1,28,28]]). Other image dimensions require another export or compatible resizing and preprocessing. The separate oxr-layout.onnx accepts normalized RGB float32[1,3,960,960] and the original image size int64[1,2] in width-height order; it returns labels, pixel-coordinate boxes, and scores. It does not perform text recognition or reading order.
With the official local tokenizer and image preprocessing, all three recognition graphs ran in ONNX Runtime's CPU provider without executing PyTorch model weights during inference. A generated image containing HELLO OCR 123 produced exactly HELLO OCR 123 in greedy generation. PyTorch and ONNX Runtime vision embeddings, language prefill, cache updates, and next-token decoding were also compared. The layout graph was checked against the original D-FINE implementation on two images. The Python conversion and validation programs are in Patchouli's scripts/oxr-conversion/. This is a fixed-resolution experimental export; recognition quality beyond these experiments is not asserted.
License: Redistribution and use are subject to the OXR license in LICENSE, including its additional commercial and hosted-service terms. The Apache License 2.0 text is in LICENSES/Apache-2.0.txt; the original attribution notice and D-FINE notices are preserved in NOTICE and LICENSES/.