pixano_inference.models.tracking
Tracking model base class.
The I/O and prompt types are the wire contract and live in
:mod:pixano_inference_client.tracking; they are re-exported here so
from pixano_inference.models.tracking import TrackingInput (and the prompt types) keep working.
TrackingModel(config)
Bases: InferenceModel
Base class for video mask generation / tracking models.
Example
Source code in pixano_inference/models/base.py
predict(input)
abstractmethod
Run video mask generation / tracking.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
TrackingInput
|
Tracking input with video, prompts, and object IDs. |
required |
Returns:
| Type | Description |
|---|---|
TrackingOutput
|
Tracking output with objects_ids, frame_indexes, and masks. |