exporter_utils
最后更新
luxonis_ml.data.exporters.exporter_utils类
ExporterSpec
属性
cls
kwargs
PreparedLDF
方法
init
Python
1def __init__(splits: dict[str, Any], processed_df: pl.DataFrame, grouped_image_sources: pl.DataFrame):from_dataset
Python
1def from_dataset(dataset: LuxonisDataset) -> PreparedLDF:dataset(LuxonisDataset): 要准备的数据集。
PreparedLDF: 准备好的 LDF 容器。
ValueError: 如果数据集没有拆分。FileNotFoundError: 如果无法从其原始位置或数据集媒体目录解析图像路径。
属性
grouped_image_sources
processed_df
splits
函数
annotation_to_polygons
Python
1def annotation_to_polygons(ann: dict[str, Any], file_path: Path) -> list[list[tuple[float, float]]]:check_group_file_correspondence
Python
1def check_group_file_correspondence(prepared_ldf: PreparedLDF):create_zip_output
Python
1def create_zip_output(max_partition_size: float | None, output_path: Path, part: int | None, dataset_identifier: str) -> Path | list[Path]:decode_rle_with_pycoco
Python
1def decode_rle_with_pycoco(ann: dict[str, Any]) -> np.ndarray:exporter_specific_annotation_warning
Python
1def exporter_specific_annotation_warning(prepared_ldf: PreparedLDF, supported_ann_types: list[str]):get_single_skeleton
Python
1def get_single_skeleton(allow_keypoints: bool, skeletons: dict[str, Any] | None = None) -> tuple[list[str], list[list[int]]]:split_of_group
Python
1def split_of_group(prepared_ldf: PreparedLDF, group_id: Any) -> str: