detrium.tasks.detect.predictor

DetectionPredictor: streaming multi-source inference over AutoBackend -> Results(boxes=...).

class DetectionPredictor(BasePredictor)

Ultralytics-style streaming detection predictor backed by `AutoBackend`.

名称类型默认值
backendAutoBackend—
predict(self, source: Any, *, stream: bool=False, **kwargs: Any) -> Union[List[Results], Iterator[Results]]
名称类型默认值
sourceAny—
streamboolFalse
kwargsAny—