Skip to content

Fix inconsistency when boxes is empty by inserting full ROI #2614

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: develop
Choose a base branch
from

Conversation

jules-ai
Copy link

PR types(PR类型)

Bug Fix

Description

When boxes is empty, the full-size image is used as the inference input. However, the corresponding full ROI was not inserted into boxes, leading to a mismatch where boxes.size() == 0 but text.size() == 1.
This behavior is inconsistent with the design documented, which specifies that boxes and text should always have the same number of elements.
This PR fixes the issue by properly inserting the full ROI into boxes.

Copy link

paddle-bot bot commented Apr 22, 2025

Thanks for your contribution!

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.

1 participant