PaddlePaddle / PaddleDetection

Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.
Apache License 2.0
12.65k stars 2.87k forks source link

focs的预测输出出现-1 #2489

Open sxlyiyiyi opened 3 years ago

wangxinxin08 commented 3 years ago

有的图片没有检测结果输出,会填充一个class id为-1的检测结果

sxlyiyiyi commented 3 years ago

Snipaste_2021-04-01_23-48-30 Snipaste_2021-04-01_23-49-15 Snipaste_2021-04-01_23-51-06

sxlyiyiyi commented 3 years ago

for i in range(warmup): self.predictor.run() output_names = self.predictor.get_output_names() boxes_tensor = self.predictor.get_output_handle(output_names[0]) np_boxes = boxes_tensor.copy_to_cpu() if self.pred_config.mask: masks_tensor = self.predictor.get_output_handle(output_names[2]) np_masks = masks_tensor.copy_to_cpu()

sxlyiyiyi commented 3 years ago

坐标值出现-1