onnx¶
onnx ¶
Attributes¶
Classes¶
YOLODetectionMixin ¶
Shared YOLOv5 detection logic (ONNX version).
YOLOv5DetectionPipeline ¶
YOLOv5DetectionPipeline(runtime: ONNXRuntime, image_size: tuple[int, int] = (640, 640), stride: int = 32, conf_threshold: float = 0.25, iou_threshold: float = 0.45, class_names: dict[int, str] | None = None, batch_strategy: BatchStrategy[ndarray, tuple[ndarray, ...] | ndarray] | None = None)
Bases: YOLODetectionMixin, Pipeline[ndarray, tuple[ndarray, ...] | ndarray, list[DetectionOutput]]
YOLOv5 object detection pipeline (ONNX version).
Source code in inferflow/pipeline/detection/onnx.py
Attributes¶
Functions¶
preprocess ¶
preprocess(input: ImageInput) -> ndarray
postprocess ¶
postprocess(raw: tuple[ndarray, ...] | ndarray) -> list[DetectionOutput]
Postprocess YOLOv5 output.