module documentation

Dataset format conversion utilities.

Copyright 2017-2025, Voxel51, Inc.

Function convert_dataset Converts a dataset stored on disk to another format on disk.
Variable logger Undocumented
Function _is_tf_records Undocumented
def convert_dataset(input_dir=None, input_type=None, input_kwargs=None, dataset_importer=None, output_dir=None, output_type=None, output_kwargs=None, dataset_exporter=None, overwrite=False): (source)

Converts a dataset stored on disk to another format on disk.

The input dataset may be specified by providing either an input_dir and a corresponding input_type or by providing a dataset_importer.

The output dataset may be specified by providing either an output_dir and a corresponding output_type or by providing a dataset_exporter.

Parameters
input_dir:Nonethe input dataset directory
input_type:Nonethe fiftyone.types.Dataset type of the dataset in input_dir
input_kwargs:Noneoptional kwargs dict to pass to the constructor of the fiftyone.utils.data.importers.DatasetImporter for the input_type you specify
dataset_importer:Nonea fiftyone.utils.data.importers.DatasetImporter to use to import the input dataset
output_dir:Nonethe directory to which to write the output dataset
output_type:Nonethe fiftyone.types.Dataset type to write to output_dir
output_kwargs:Noneoptional kwargs dict to pass to the constructor of the fiftyone.utils.data.exporters.DatasetExporter for the output_type you specify
dataset_exporter:Nonea fiftyone.utils.data.exporters.DatasetExporter to use to export the dataset
overwrite:Falsewhether to delete existing directories before performing the export (True) or to merge the export with existing files and directories (False)

Undocumented

def _is_tf_records(dataset_type): (source)

Undocumented