ultralytics_ndjson_exporter
最后更新
luxonis_ml.data.exporters.ultralytics_ndjson_exporter类
UltralyticsNDJSONExporter
方法
init
Python
1def __init__(dataset_identifier: str, output_path: Path, max_partition_size_gb: float | None, *, dataset_type: DatasetType, ndjson_task: UltralyticsTask):export
Python
1def export(prepared_ldf: PreparedLDF):prepared_ldf(PreparedLDF): 准备好用于导出的数据集。
NotImplementedError: 抽象基类实现总是引发此错误。
get_split_names
Python
1def get_split_names(self) -> dict[str, str]:supported_ann_types
Python
1def supported_ann_types(self) -> list[str]:list[str]: 支持的标注任务类型。
NotImplementedError: 抽象基类实现总是引发此错误。
属性
class_names
class_to_id
current_size
dataset_type
keypoint_counts
ndjson_task
"detect"、"segment" 或 "pose"。