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

仅使用Det模型时,返回的numpy数组判断是否为空时报错 #11956

Closed
YasinZhao opened this issue Apr 17, 2024 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@YasinZhao
Copy link

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

  • 系统环境/System Environment:Linux
  • 版本号/Version:Paddle:2.6.1 PaddleOCR:2.7.3 问题相关组件/Related components:paddleocr==2.7.3
  • 运行指令/Command Code:
  • 完整报错/Complete Error Message:
image image 如图1所示,在pypi发布的paddleocr==2.7.3版本,在仅使用det模型时,对于返回的数组在进行非空判断时,方法不对,会报错如图2所示。该问题,我看到已经有同学发布过PR(https://github.com//pull/11440),但在pypi发布的whl文件中还是没有修正,希望下次发布时能够修正该问题,谢谢!
@Sunting78
Copy link
Collaborator

您好,感谢提醒。我们会及时跟进

@TingquanGao TingquanGao added the bug Something isn't working label Apr 25, 2024
@YangWulve
Copy link

YangWulve commented May 27, 2024

我也遇到了这个问题,因为paddleocr.py里688行的dt_boxes是numpy.ndarray,所以报错。
我将这里修改为if not dt_boxes.shape[0]: 后可以正常运行

@SWHL
Copy link
Collaborator

SWHL commented Jun 6, 2024

该问题的PR #11440 已经被merged了,后续发版会自动修复该问题。
issue先行关闭了

@SWHL SWHL closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants