Skip to content

fix(layout_parsing): validate chart and formula model settings#5160

Open
lixiyu wants to merge 1 commit into
PaddlePaddle:developfrom
lixiyu:fix/chart-formula-model-settings-validation
Open

fix(layout_parsing): validate chart and formula model settings#5160
lixiyu wants to merge 1 commit into
PaddlePaddle:developfrom
lixiyu:fix/chart-formula-model-settings-validation

Conversation

@lixiyu

@lixiyu lixiyu commented Jun 14, 2026

Copy link
Copy Markdown

Return a clear error when predict requests chart or formula recognition but the corresponding models were not initialized at pipeline startup.

问题:启动 use_chart_recognition=False,API 传 True 时 upstream 会 AttributeError
修复:在 check_model_settings_valid 补 chart / formula 校验
影响:HTTP 返回明确 500,而非 Internal server error

Return a clear error when predict requests chart or formula recognition
but the corresponding models were not initialized at pipeline startup.
@CLAassistant

CLAassistant commented Jun 14, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@paddle-bot

paddle-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

Thanks for your contribution!

@paddle-bot paddle-bot Bot added the contributor External developers label Jul 13, 2026
@paddle-bot

paddle-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

Thanks for your contribution!

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.

2 participants