Skip to content

ocrblaze 0.2.0

Latest

Choose a tag to compare

@sundarshahi sundarshahi released this 05 Dec 05:46
· 2 commits to main since this release

Exact on every CPU the reference runs on, not only on arm64.

  • x86_64: np.argsort now follows numpy's x86-simd-sort path (AVX-512: 8 lanes, AVX2: 4 lanes, the std::sort
    fallback and all), chosen at run time from the CPU; no FMA contraction and no Carotene resize, as in the x86 wheels.
  • arm64: the box-side length follows OpenBLAS sdot per kernel (FMA on kernels without SVE, such as Graviton2;
    plain on SVE kernels).
  • x86_64 runs the whole detector by default (OCRBLAZE_DET_TILE=0, about 250 MiB more): ONNX Runtime pools in a
    different order on x86, so tiles there differ from the whole model in the last digits. arm64 keeps tiles of 384.
  • Parity: a cpu part forcing the reference into each argsort and sdot kernel; a Recognisers workflow proving the
    11 other official PP-OCRv5 mobile recognisers (all pinned in build/fetch_models.py, built with RECS=...);
    every part runs even after one fails.
  • The image keeps the whole detector beside its pieces (4.5 MB). The contract check allows 500 MiB on x86_64 (420 measured).
  • Models unchanged: the v0.1.0 model release still applies.

Model files: unchanged, use the v0.1.0 release assets.

crates.io: https://crates.io/crates/ocrblaze/0.2.0