Skip to content

perf: run batch on a single PaddleOCR instance - #6

Open
phu54321 wants to merge 1 commit into
clefru:masterfrom
phu54321:feat/paddleocr_batch
Open

perf: run batch on a single PaddleOCR instance#6
phu54321 wants to merge 1 commit into
clefru:masterfrom
phu54321:feat/paddleocr_batch

Conversation

@phu54321

@phu54321 phu54321 commented Jul 22, 2026

Copy link
Copy Markdown

Batch paddleOCR inference on a single model instance, rather than creating --jobs paddleOCR model instance concurrently. This avoids recreating PaddleOCR instance for every page too.

This seems to utilize GPU much better, and is much more VRAM-sane.

Caveats: This doesnt support multiprocessing. OCRmyPDF by default uses ThreadPoolExecutor so it would work.

Batch paddleOCR inference on a single model instance, rather than
creating `--jobs` paddleOCR model instance. this seems to utilize GPU
much better, and is much more VRAM-sane.

Co-authored-by: OpenAI Codex, GPT 5.6 Sol <codex@openai.com>
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