class documentation

Lightweight container for LDF data ready for export.

Class Method from_dataset Prepare a dataset for export into the LDF representation.
Method __init__ Undocumented
Instance Variable grouped_image_sources Unique mapping of group IDs, source names, and file paths.
Instance Variable processed_df Annotation dataframe with paths resolved to readable files.
Instance Variable splits Split names mapped to group IDs.
@classmethod
def from_dataset(cls, dataset: LuxonisDataset) -> PreparedLDF:

Prepare a dataset for export into the LDF representation.

Parameters
dataset:LuxonisDatasetDataset to prepare.
Returns
PreparedLDFPrepared LDF container.
Raises
ValueErrorIf the dataset has no splits.
FileNotFoundErrorIf an image path cannot be resolved from either its original location or the dataset media directory.
def __init__(self, splits: dict[str, Any], processed_df: pl.DataFrame, grouped_image_sources: pl.DataFrame):

Undocumented

grouped_image_sources =

Unique mapping of group IDs, source names, and file paths.

processed_df =

Annotation dataframe with paths resolved to readable files.

splits =

Split names mapped to group IDs.