FieldwiseDataset#

class maite.protocols.multiobject_tracking.FieldwiseDataset(*args, **kwargs)[source]#

A specialization of Dataset protocol (i.e., a subprotocol) that specifies additional accessor methods for getting input, target, and metadata individually.

Methods

__getitem__(ind: int) -> tuple[VideoStream, MultiobjectTrackingTarget, DatumMetadata]

Provide map-style access to dataset elements. Returned tuple elements correspond to model input type, model target type, and datum-specific metadata type, respectively.

__len__() -> int

Return the number of data elements in the dataset.

get_input(index: int, /) -> VideoStream:

Get input at the given index.

get_target(index: int, /) -> MultiobjectTrackingTarget:

Get target at the given index.

get_metadata(index: int, /) -> DatumMetadata:

Get metadata at the given index.