fiftyone_classification_exporter
最后更新
luxonis_ml.data.exporters.fiftyone_classification_exporter类
FiftyOneClassificationExporter
Text
1<dataset_name>/
2 train/
3 data/
4 000001.jpg
5 000002.jpg
6 ...
7 labels.json
8 validation/
9 data/
10 ...
11 labels.json
12 test/
13 data/
14 ...
15 labels.jsonlabels.json 文件结构如下:Text
1{
2 "classes": ["class1", "class2", ...],
3 "labels": {
4 "000001": 0, # 类的索引
5 "000002": 1,
6 ...
7 }
8}方法
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: 抽象基类实现总是引发此错误。
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: 抽象基类实现总是引发此错误。