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

bug fix: 修复contrib中的det模型后处理在遇到没有检测框的图时导致同batch中接下来的图片结果全部为空的bug #2378

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

AlbinZhu
Copy link
Contributor

PR types(PR类型)

bug fix

Description

fastdeploy/vision/detection/contrib/yolov8/postprocessor.cc中95行

if ((*results)[bs].boxes.size() == 0) {
      return true;
}

会导致如果同一个batch中有检测结果为空的图片那么接下来的图片的检测结果就不再处理。将return true; 替换为continue;避免此问题。

其他contrib中的postprocessor也有同样的问题。

Copy link

paddle-bot bot commented Feb 27, 2024

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Feb 27, 2024

CLA assistant check
All committers have signed the CLA.

@jiangjiajun
Copy link
Collaborator

Thanks for your contribution!

@jiangjiajun jiangjiajun merged commit 1314f32 into PaddlePaddle:develop Feb 27, 2024
3 of 10 checks passed
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.

None yet

3 participants