module documentation
Dataset format conversion utilities.
Function | convert |
Converts a dataset stored on disk to another format on disk. |
Variable | logger |
Undocumented |
Function | _is |
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 | |
inputNone | the input dataset directory |
inputNone | the fiftyone.types.Dataset type of the
dataset in input_dir |
inputNone | optional kwargs dict to pass to the constructor of
the fiftyone.utils.data.importers.DatasetImporter for the
input_type you specify |
datasetNone | a
fiftyone.utils.data.importers.DatasetImporter to use to
import the input dataset |
outputNone | the directory to which to write the output dataset |
outputNone | the fiftyone.types.Dataset type to write
to output_dir |
outputNone | optional kwargs dict to pass to the constructor
of the fiftyone.utils.data.exporters.DatasetExporter for
the output_type you specify |
datasetNone | a
fiftyone.utils.data.exporters.DatasetExporter to use to
export the dataset |
overwrite:False | whether to delete existing directories before performing the export (True) or to merge the export with existing files and directories (False) |