apply conf th to post process

This commit is contained in:
alexyao2015 2024-02-21 02:01:24 -06:00
parent adfaa04760
commit 95c04b6244

View File

@ -300,7 +300,9 @@ class TensorRtDetector(DetectionApi):
for o in trt_outputs:
detections.append(
yolov8_postprocess(
self.input_shape[0], o.reshape(self.output_shape[0])
self.input_shape[0],
o.reshape(self.output_shape[0]),
score_threshold=self.conf_th,
),
)
detections = np.concatenate(detections)