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