datumaro.plugins.data_formats.datumaro.exporter#

Classes

DatumaroExporter(extractor, save_dir, *[, ...])

JsonWriter()

class datumaro.plugins.data_formats.datumaro.exporter.JsonWriter[source]#

Bases: object

classmethod write_categories(categories) Dict[str, Dict][source]#
class datumaro.plugins.data_formats.datumaro.exporter.DatumaroExporter(extractor: IDataset, save_dir: str, *, save_media: bool | None = None, image_ext: str | None = None, default_image_ext: str | None = None, save_dataset_meta: bool = False, save_hashkey_meta: bool = False, stream: bool = False, ctx: ExportContext | None = None)[source]#

Bases: Exporter

DEFAULT_IMAGE_EXT = '.jpg'#
PATH_CLS#

alias of DatumaroPath

create_writer(subset: str, images_dir: str, pcd_dir: str, video_dir: str) _SubsetWriter[source]#
classmethod patch(dataset, patch, save_dir, **kwargs)[source]#
property can_stream: bool#

Flag to indicate whether the exporter can export the dataset in a stream manner or not.