Skip to content

feat: warn on high-resolution text detection input without downscaling#5146

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

feat: warn on high-resolution text detection input without downscaling#5146
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

为文本检测预处理新增高分辨率输入告警:当输入图像未被缩小、且最长边超过阈值(2000px)时,打印一次告警,提示可能的性能/显存开销。

  • 新增模块级常量 HIGH_RES_DET_INPUT_WARN_SIDE = 2000 与去重集合 _warned_det_input_sizes
  • 新增辅助函数 _warn_if_high_res_det_input(width, height)
  • __call__resize(...) 之后按需触发告警

@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
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