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_dirand a correspondinginput_typeor by providing adataset_importer.The output dataset may be specified by providing either an
output_dirand a correspondingoutput_typeor by providing adataset_exporter.- Parameters:
input_dir (None) β the input dataset directory
input_type (None) β the
fiftyone.types.Datasettype of the dataset ininput_dirinput_kwargs (None) β optional kwargs dict to pass to the constructor of the
fiftyone.utils.data.importers.DatasetImporterfor theinput_typeyou specifydataset_importer (None) β a
fiftyone.utils.data.importers.DatasetImporterto use to import the input datasetoutput_dir (None) β the directory to which to write the output dataset
output_type (None) β the
fiftyone.types.Datasettype to write tooutput_diroutput_kwargs (None) β optional kwargs dict to pass to the constructor of the
fiftyone.utils.data.exporters.DatasetExporterfor theoutput_typeyou specifydataset_exporter (None) β a
fiftyone.utils.data.exporters.DatasetExporterto 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)