Skip to content
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

add layout score return #13068

Merged
merged 1 commit into from
Jun 14, 2024
Merged

add layout score return #13068

merged 1 commit into from
Jun 14, 2024

Conversation

myhloli
Copy link
Contributor

@myhloli myhloli commented Jun 14, 2024

最近在使用paddleocr的版面分析功能,使用的pypi上下载的2.7.3最新版,发现PPStructure返回的result中的layout区块信息存在高iou但type不同的情况,
高iou区块示例
示例pdf页面
之前用过其他的版面分析模型,会在返回的layout信息中提供每个layout_block的score信息,方便在后续处理的pipeline中对高iou的区块做低score区块移除处理。
看了最新的仓库代码(2.8.0版本),发现相较于2.7.3whl版本,PaddleOCR/ppocr/postprocess/picodet_postprocess.py
中已增加了layout的score返回,但是在PaddleOCR/ppstructure/predict_system.py 中,没有增加对应的返回参数
现已补全result中的layout score参数,便于后续pipeline的开发使用

@CLAassistant
Copy link

CLAassistant commented Jun 14, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@GreatV GreatV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GreatV GreatV merged commit 4f54aa6 into PaddlePaddle:main Jun 14, 2024
3 checks passed
@luotao1
Copy link
Collaborator

luotao1 commented Oct 15, 2024

@myhloli Thanks for your contribution! You will receive a beautiful PaddlePaddle gift. Please provide your mailing address by filling out the following questionnaire before October 18th.

Looking forward to the future, we will walk further together in the world of open source!
Click Here :https://paddle.wjx.cn/vm/h4On9gJ.aspx#

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.

4 participants