mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-15 13:10:55 +08:00
bug fix: 修复contrib中的det模型后处理在遇到没有检测框的图时导致同batch中接下来的图片结果全部为空的bug (#2378)
This commit is contained in:
@@ -105,7 +105,7 @@ bool YOLOv5SegPostprocessor::Run(
|
||||
}
|
||||
|
||||
if ((*results)[bs].boxes.size() == 0) {
|
||||
return true;
|
||||
continue;
|
||||
}
|
||||
// get box index after nms
|
||||
std::vector<int> index;
|
||||
|
Reference in New Issue
Block a user