fiftyone.utils.data.converters#
Dataset format conversion utilities.
Functions:
|
Converts a dataset stored on disk to another format on disk. |
- fiftyone.utils.data.converters.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)#
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 correspondinginput_type
or by providing adataset_importer
.The output dataset may be specified by providing either an
output_dir
and a correspondingoutput_type
or by providing adataset_exporter
.- Parameters:
input_dir (None) β the input dataset directory
input_type (None) β the
fiftyone.types.Dataset
type of the dataset ininput_dir
input_kwargs (None) β optional kwargs dict to pass to the constructor of the
fiftyone.utils.data.importers.DatasetImporter
for theinput_type
you specifydataset_importer (None) β a
fiftyone.utils.data.importers.DatasetImporter
to use to import the input datasetoutput_dir (None) β the directory to which to write the output dataset
output_type (None) β the
fiftyone.types.Dataset
type to write tooutput_dir
output_kwargs (None) β optional kwargs dict to pass to the constructor of the
fiftyone.utils.data.exporters.DatasetExporter
for theoutput_type
you specifydataset_exporter (None) β a
fiftyone.utils.data.exporters.DatasetExporter
to use to export the datasetoverwrite (False) β whether to delete existing directories before performing the export (True) or to merge the export with existing files and directories (False)