Repository navigation
ocr(paddleocr-vl-1.8): add --keep-labels flag and promote to core - #222
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clean follow-up to #221:
--keep-labelsflag (matchingocr/minicpm-ocr.py):PaddleOCR-VL-1.8.yamldrops 7 region labels fromres.markdownby default (number,footnote,header,header_image,footer,footer_image,aside_text) even though Stage 2 already OCRs them.--keep-labels footnote aside_textforwards the filtered list via PaddleX 3.8.0's nativemarkdown_ignore_labelsparameter (leaving upstream defaults untouched when omitted, and passing[]cleanly when all 7 labels are kept).keep_labelsininference_info, the dataset card, and the reproduction command (deduplicated).paddleocr-vl-1.8.pyfromexperimentaltocore(ocr/models.json,ocr/README.md,ocr/CLAUDE.md):0failures across Ampere (a10g-small), Ada (l4x1), and Blackwell (rtx-pro-6000).PaddlePaddle/PaddleOCR-VL-1.8inuv-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/26ok,0failed; verifiedfootnoteblocks appear inmarkdownwhileheader/numberstay out andinference_inforecordskeep_labels.pvl18-keep-all(6b117135,a10g-small, 26 BHL pages, all 7 labels):26/26ok in42.2s(0.62 pg/s),0failed; verifiedmarkdown_ignore_labels=[]includesfootnote,header, andnumberinmarkdown(no empty-list fallback bug) and rendersKept labelsin the dataset card.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.8present inrun-on-jobs/README.md), plus CLI/dedup unit tests.