Skip to content

ocr(paddleocr-vl-1.8): add --keep-labels flag and promote to core - #222

Merged
davanstrien merged 1 commit into
mainfrom
ocr/paddleocr-vl-1.8-keep-labels
Dec 3, 2026
Merged

davanstrien merged 1 commit into
mainfrom
ocr/paddleocr-vl-1.8-keep-labels

Conversation

@davanstrien

Copy link
Copy Markdown
Owner

Clean follow-up to #221:

  1. Add --keep-labels flag (matching ocr/minicpm-ocr.py):
    • PaddleOCR-VL-1.8.yaml drops 7 region labels from res.markdown by default (number, footnote, header, header_image, footer, footer_image, aside_text) even though Stage 2 already OCRs them.
    • Passing e.g. --keep-labels footnote aside_text forwards the filtered list via PaddleX 3.8.0's native markdown_ignore_labels parameter (leaving upstream defaults untouched when omitted, and passing [] cleanly when all 7 labels are kept).
    • Records keep_labels in inference_info, the dataset card, and the reproduction command (deduplicated).
  2. Promote paddleocr-vl-1.8.py from experimental to core (ocr/models.json, ocr/README.md, ocr/CLAUDE.md):
    • Verified across 10 GPU smoke runs + a full 2,165-page BHL run with 0 failures across Ampere (a10g-small), Ada (l4x1), and Blackwell (rtx-pro-6000).
    • Declares PaddlePaddle/PaddleOCR-VL-1.8 in uv-scripts/run-on-jobs (43 declared models) so the Run on Jobs Space appears on the model page.

Verification

  • pvl18-keep-fn (6b117126, a10g-small, 26 BHL pages, --keep-labels footnote aside_text --save-blocks): 26/26 ok, 0 failed; verified footnote blocks appear in markdown while header/number stay out and inference_info records keep_labels.
  • pvl18-keep-all (6b117135, a10g-small, 26 BHL pages, all 7 labels): 26/26 ok in 42.2s (0.62 pg/s), 0 failed; verified markdown_ignore_labels=[] includes footnote, header, and number in markdown (no empty-list fallback bug) and renders Kept labels in the dataset card.
  • Local gates: ruff check, tools/recipe-status.py --check (0 problem(s)), tools/build-catalog.py --verify-models (76 recipes, 43 declared models, PaddlePaddle/PaddleOCR-VL-1.8 present in run-on-jobs/README.md), plus CLI/dedup unit tests.

@davanstrien
davanstrien merged commit fb8cceb into main Dec 3, 2026
1 check passed
@davanstrien
davanstrien deleted the ocr/paddleocr-vl-1.8-keep-labels branch December 3, 2026 14:33
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