Predictions
Note
The ArrayLike
type is expected to be a np.ndarray
or a torch.Tensor
.
mozuma.predictions.BatchModelPrediction
dataclass
Class defining the accepted types for model's predictions
Attributes:
Name | Type | Description |
---|---|---|
features |
ArrayLike | None |
Features or embeddings. Dimensions= |
label_scores |
ArrayLike | None |
Score for each predicted label. Dimensions= |
frames |
Sequence[BatchVideoFramesPrediction[ArrayLike]] | None |
Prediction for each frame and video. See BatchVideoFramesPrediction. Sequence length= |
bounding_boxes |
Sequence[BatchBoundingBoxesPrediction[ArrayLike]] | None |
Prediction for each bounding_box and image. See BatchBoundingBoxesPrediction. Sequence length= |
mozuma.predictions.BatchBoundingBoxesPrediction
dataclass
Results of bounding box extraction on an images
Attributes:
Name | Type | Description |
---|---|---|
bounding_boxes |
ArrayLike |
Array of bounding box coordinates. Dimensions= |
scores |
ArrayLike | None |
Array of scores for each bounding boxes. Dimensions= |
features |
ArrayLike | None |
Array of features for each bounding boxes. Dimensions= |
mozuma.predictions.BatchVideoFramesPrediction
dataclass
Result of video frames extraction on a video
Attributes:
Name | Type | Description |
---|---|---|
frame_indices |
Sequence[int] |
The frame index in the source video |
features |
ArrayLike | None |
The features of the video frames. Dimensions= |