Skip to content

build(deps): take paddleocr 3.7 so PP-OCRv6 recognisers load - #107

Merged
stephen-masters merged 1 commit into
mainfrom
build/paddleocr-3-7
Nov 16, 2026
Merged

stephen-masters merged 1 commit into
mainfrom
build/paddleocr-3-7

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

What

Raises the paddle and paddle-vl extras to paddleocr>=3.7 (and paddlex[ocr]>=3.7, paddlepaddle>=3.2) and relocks.

Why

PaddleX registers the PP-OCRv6 recogniser architectures from 3.7. Custom models exported in that format, such as Calfa's paddle-calfa-tiny that the register benchmark measures against, fail at construction on anything older:

ClassNotFoundException: `PP-OCRv6_tiny_rec` is not registered on BasePredictor.

The lock had held 3.7.0 since 2 November. PaddleX 3.7 caps numpy below 2.4, so Dependabot's numpy 2.4.6 bump on 14 November (#102) quietly resolved paddleocr back to 3.4.1, and the brief 014 baseline run over the classical registers failed on every page. With the floor declared, the resolver cannot make that choice again; numpy returns to 2.3.5 until PaddleX lifts its cap.

Checked

  • Calfa's model constructs and reads a crop correctly under the relocked venv.
  • pytest -k paddle: 33 passed.
  • uv lock --check passes (pre-commit hook).

🤖 Generated with Claude Code

PaddleX registers the PP-OCRv6 recogniser architectures from 3.7, and
custom models exported in that format, such as Calfa's
paddle-calfa-tiny, fail at construction on anything older with
"`PP-OCRv6_tiny_rec` is not registered on BasePredictor".

The lock had held 3.7.0 since 2 November, but PaddleX 3.7 caps numpy
below 2.4, so Dependabot's numpy 2.4.6 bump on 14 November (#102)
quietly resolved paddleocr back to 3.4.1 and every PP-OCRv6 model
stopped loading. A 3.7 floor on both paddle extras keeps the resolver
from choosing that again; numpy returns to 2.3.5 until PaddleX lifts
its cap.

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tetrak with  Cloudflare Pages  Cloudflare Pages

Latest commit: e805e26
Status: ✅  Deploy successful!
Preview URL: https://b8194266.tetrak.pages.dev
Branch Preview URL: https://build-paddleocr-3-7.tetrak.pages.dev

View logs

@stephen-masters
stephen-masters merged commit a6cc8e8 into main Nov 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant