module documentation

Undocumented

Class LDF_1_0_0_MetadataDict Metadata dictionary used by LDF 1.0.0.
Function migrate_dataframe Undocumented
Function migrate_metadata Migrate LDF 1.0.0 metadata to the current schema.
Constant LDF_1_0_0_TASK_TYPES Undocumented
Constant LDF_1_0_0_TASKS Undocumented
@overload
def migrate_dataframe(df: pl.LazyFrame) -> pl.LazyFrame:
@overload
def migrate_dataframe(df: pl.DataFrame) -> pl.DataFrame:

Undocumented

def migrate_metadata(metadata: LDF_1_0_0_MetadataDict, df: pl.LazyFrame | None) -> Metadata:

Migrate LDF 1.0.0 metadata to the current schema.

Parameters
metadata:LDF_1_0_0_MetadataDictMetadata dictionary in the LDF 1.0.0 layout.
df:pl.LazyFrame | NoneOptional annotation dataframe used to infer task names for non-default datasets.
Returns
MetadataMigrated metadata model.
Raises
ValueErrorIf task inference requires annotation rows but df is None.
LDF_1_0_0_TASK_TYPES: dict[str, str] =

Undocumented

Value
{'BBoxAnnotation': 'boundingbox',
 'ClassificationAnnotation': 'classification',
 'PolylineSegmentationAnnotation': 'segmentation',
 'RLESegmentationAnnotation': 'segmentation',
 'MaskSegmentationAnnotation': 'segmentation',
 'KeypointAnnotation': 'keypoints',
 'ArrayAnnotation': 'array'}
LDF_1_0_0_TASKS: set[str] =

Undocumented

Value
set(['classification', 'segmentation', 'boundingbox', 'keypoints', 'array'])