Skip to content

fix bug for SLANet infer bbox error #14854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

YeSZ1520
Copy link

@YeSZ1520 YeSZ1520 commented Mar 14, 2025

什么 bug

issue #14007 提到了 SLANet 推理过程中的 bbox 位置错误,同时由于 SLANet 是 PP-Structure 的表格解析模型,导致 PP-Structure 的表格及文档解析出现错误 #14850 #14337

怎么出现的

pr #13861 当中,修改了ppocr/postprocess/table_postprocess.py 当中 TableLabelDecode 的 _bbox_decode 函数,适配了 SLANet-plus 的 bbox 解码,但同时也导致了 SLANet 的 bbox 解码错误

怎么修复

回调 TableLabelDecode 的 _bbox_decode 函数 ,模仿 TableMaster 模型的处理,创建 SLANetPlusLabelDecode 类,将其 _bbox_decode 覆写为当前 TableLabelDecode 的版本,如需使用 SLANet-plus,可以使用该类进行 bbox 解码

Copy link

paddle-bot bot commented Mar 14, 2025

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Mar 14, 2025

CLA assistant check
All committers have signed the CLA.

@GreatV GreatV requested a review from cuicheng01 March 14, 2025 03:31
@liu-jiaxuan
Copy link
Contributor

Hi,非常感谢提供修复代码,这个问题确实存在,但修复还需要与原有框架适配,并且做大量的测试工作,官方会尽快参考你的PR进行修复,再次感谢贡献代码!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants