此页面由 AI 自动翻译。查看英文原版
最后更新

本页目录

  • 类
  • BaseExporter
Claude CodeCodexCursor
Luxonis 智能体工具包为你常用的编程智能体加载 Luxonis 上下文与技能,更快地基于 OAK 开发应用。
安装工具包

base_exporter

最后更新
Python API: luxonis_ml.data.exporters.base_exporter

类

BaseExporter

数据集导出器的基类。

方法

init
Python
1def __init__(dataset_identifier: str, output_path: Path, max_partition_size_gb: float | None):
export
Python
1def export(prepared_ldf: PreparedLDF):
将准备好的数据集转换为导出器格式。参数
  • prepared_ldf (PreparedLDF): 准备好用于导出的数据集。
引发
  • NotImplementedError: 抽象基类实现总是引发此错误。
supported_ann_types
Python
1def supported_ann_types(self) -> list[str]:
返回此导出器支持的任务类型。返回
  • list[str]: 支持的标注任务类型。
引发
  • NotImplementedError: 抽象基类实现总是引发此错误。

属性

current_size
当前分区大小(字节)。
dataset_identifier
用于导出路径的名称或标识符。
image_indices
具体导出器使用的每图像导出索引。
max_partition_size
可选的最大分区大小(字节)。
max_partition_size_gb
可选的最大分区大小(GiB)。
output_path
导出写入的目录。
part
当前分区索引,分区禁用时为 None。