class FiftyOneDatasetExporter(BatchDatasetExporter): (source)
Constructor: FiftyOneDatasetExporter(export_dir, export_media, rel_dir, chunk_size, ...)
Exporter that writes an entire FiftyOne dataset to disk in a serialized JSON format along with its source media.
See :ref:`this page <FiftyOneDataset-export>` for format details.
Parameters | |
export | the directory to write the export |
export | defines how to export the raw media contained in the dataset. The supported values are:
|
rel | an optional relative directory to strip from each input
filepath to generate a unique identifier for each media. When
exporting media, this identifier is joined with export_dir to
generate an output path for each exported media. This argument
allows for populating nested subdirectories that match the shape of
the input paths. The path is converted to an absolute path (if
necessary) via fiftyone.core.storage.normalize_path |
chunk | an optional chunk size to use when exporting media files. If provided, media files will be nested in subdirectories of the output directory with at most this many media files per subdirectory. Has no effect if a rel_dir is provided |
export | whether to include saved views in the export. Only applicable when exporting full datasets |
export | whether to include annotation/brain/evaluation runs in the export. Only applicable when exporting full datasets |
export | whether to include saved workspaces in the export. Only applicable when exporting full datasets |
use | whether to export metadata into directories of per sample/frame files |
ordered | whether to preserve the order of the exported collections |
Method | __init__ |
Undocumented |
Method | export |
Exports the given sample collection. |
Method | setup |
Performs any necessary setup before exporting the first sample in the dataset. |
Instance Variable | chunk |
Undocumented |
Instance Variable | export |
Undocumented |
Instance Variable | export |
Undocumented |
Instance Variable | export |
Undocumented |
Instance Variable | export |
Undocumented |
Instance Variable | ordered |
Undocumented |
Instance Variable | rel |
Undocumented |
Instance Variable | use |
Undocumented |
Method | _export |
Undocumented |
Method | _export |
Undocumented |
Method | _get |
Undocumented |
Instance Variable | _anno |
Undocumented |
Instance Variable | _brain |
Undocumented |
Instance Variable | _data |
Undocumented |
Instance Variable | _eval |
Undocumented |
Instance Variable | _fields |
Undocumented |
Instance Variable | _frames |
Undocumented |
Instance Variable | _media |
Undocumented |
Instance Variable | _media |
Undocumented |
Instance Variable | _media |
Undocumented |
Instance Variable | _metadata |
Undocumented |
Instance Variable | _runs |
Undocumented |
Instance Variable | _samples |
Undocumented |
Inherited from BatchDatasetExporter
:
Method | export |
Exports the given sample to the dataset. |
Inherited from DatasetExporter
(via BatchDatasetExporter
):
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | close |
Performs any necessary actions after the last sample has been exported. |
Method | log |
Logs any relevant information about the fiftyone.core.collections.SampleCollection whose samples will be exported. |
Undocumented
Exports the given sample collection.
Parameters | |
sample | a
fiftyone.core.collections.SampleCollection |
progress:None | whether to render a progress bar (True/False), use the default value fiftyone.config.show_progress_bars (None), or a progress callback function to invoke instead |
Performs any necessary setup before exporting the first sample in the dataset.
This method is called when the exporter's context manager interface is
entered, DatasetExporter.__enter__
.