mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 12:15:25 +03:00
detectors/openvino: remove class aggregation
This commit is contained in:
parent
4dc7502f8a
commit
79b88c979e
@ -51,8 +51,6 @@ class OvDetector(DetectionApi):
|
||||
logger.info(f"YOLOX model has {self.num_classes} classes")
|
||||
self.set_strides_grids()
|
||||
|
||||
self.class_aggregation = yolo_utils.generate_class_aggregation_from_config(detector_config)
|
||||
|
||||
def set_strides_grids(self):
|
||||
grids = []
|
||||
expanded_strides = []
|
||||
@ -138,7 +136,7 @@ class OvDetector(DetectionApi):
|
||||
return detections
|
||||
elif self.ov_model_type == ModelTypeEnum.yolov8:
|
||||
out_tensor = infer_request.get_output_tensor().data
|
||||
return yolo_utils.yolov8_postprocess(self.interpreter.inputs[0].shape, out_tensor, class_aggregation = self.class_aggregation)
|
||||
return yolo_utils.yolov8_postprocess(self.interpreter.inputs[0].shape, out_tensor)
|
||||
elif self.ov_model_type == ModelTypeEnum.yolov5:
|
||||
out_tensor = infer_request.get_output_tensor()
|
||||
output_data = out_tensor.data[0]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user