class documentation
class PreparedLDF:
Constructors: PreparedLDF.from_dataset(dataset), PreparedLDF(splits, processed_df, grouped_image_sources)
Lightweight container for LDF data ready for export.
| Class Method | from |
Prepare a dataset for export into the LDF representation. |
| Method | __init__ |
Undocumented |
| Instance Variable | grouped |
Unique mapping of group IDs, source names, and file paths. |
| Instance Variable | processed |
Annotation dataframe with paths resolved to readable files. |
| Instance Variable | splits |
Split names mapped to group IDs. |
Prepare a dataset for export into the LDF representation.
| Parameters | |
dataset:LuxonisDataset | Dataset to prepare. |
| Returns | |
PreparedLDF | Prepared LDF container. |
| Raises | |
ValueError | If the dataset has no splits. |
FileNotFoundError | If 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