mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-19 01:17:06 +03:00
WIP yolov9
This commit is contained in:
parent
bc96db8612
commit
a831fc2bef
@ -35,6 +35,7 @@ class InputDTypeEnum(str, Enum):
|
|||||||
class ModelTypeEnum(str, Enum):
|
class ModelTypeEnum(str, Enum):
|
||||||
ssd = "ssd"
|
ssd = "ssd"
|
||||||
yolox = "yolox"
|
yolox = "yolox"
|
||||||
|
yolov9 = "yolov9"
|
||||||
yolonas = "yolonas"
|
yolonas = "yolonas"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -79,6 +79,10 @@ class ONNXDetector(DetectionApi):
|
|||||||
x_max / self.w,
|
x_max / self.w,
|
||||||
]
|
]
|
||||||
return detections
|
return detections
|
||||||
|
elif self.onnx_model_type == ModelTypeEnum.yolov9:
|
||||||
|
# see https://github.com/MultimediaTechLab/YOLO/blob/main/yolo/utils/bounding_box_utils.py#L338
|
||||||
|
logger.info(f"the output shape is {tensor_output[0][0].shape} which has {tensor_output[0][0][0]}")
|
||||||
|
return np.zeros((20, 6), np.float32)
|
||||||
else:
|
else:
|
||||||
raise Exception(
|
raise Exception(
|
||||||
f"{self.onnx_model_type} is currently not supported for rocm. See the docs for more info on supported models."
|
f"{self.onnx_model_type} is currently not supported for rocm. See the docs for more info on supported models."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user