Skip to content

feat: warn on large text detector inputs - #5146

Open
hoobnn wants to merge 1 commit into
PaddlePaddle:developfrom
hoobnn:feat/warn-high-res-det-input
Open

hoobnn wants to merge 1 commit into
PaddlePaddle:developfrom
hoobnn:feat/warn-high-res-det-input

Conversation

@hoobnn

@hoobnn hoobnn commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

What

Warn when the actual text detector input produced by preprocessing exceeds 4,000,000 pixels.

  • Uses the detector input dimensions after resize, without assuming whether the source was downscaled.
  • Reports both detector and source image dimensions and gives pipeline/model-level sizing guidance.
  • Emits at most once per processor instance, keeping deduplication state bounded.
  • Keeps the warning policy in a small helper with focused boundary, deduplication, and message-context tests.

Verification

  • python3 -m pytest -q -p no:cacheprovider tests/inference/models/text_detection/test_processors.py
  • Result: 3 passed
  • git diff --check

@paddle-bot

paddle-bot Bot commented May 29, 2026

Copy link
Copy Markdown

Thanks for your contribution!

@paddle-bot paddle-bot Bot added the contributor External developers label May 29, 2026
@hoobnn
hoobnn force-pushed the feat/warn-high-res-det-input branch from 36448ab to beaafbf Compare August 31, 2026 01:26
@hoobnn hoobnn changed the title feat: warn on high-resolution text detection input without downscaling feat: warn on large text detector inputs Aug 31, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant