datumaro.plugins.data_formats.image_dir#

Classes

ImageDirBase(url, *[, subset, ctx])

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

ImageDirImporter()

Reads images from a directory as a dataset.

class datumaro.plugins.data_formats.image_dir.ImageDirImporter[source]#

Bases: Importer

Reads images from a directory as a dataset.

DETECT_CONFIDENCE = 5#
classmethod build_cmdline_parser(**kwargs)[source]#
classmethod detect(context: FormatDetectionContext) FormatDetectionConfidence[source]#
classmethod find_sources(path)[source]#
classmethod get_file_extensions() List[str][source]#
class datumaro.plugins.data_formats.image_dir.ImageDirBase(url: str, *, subset: str | None = None, ctx: ImportContext | None = None)[source]#

Bases: SubsetBase

property is_stream: bool#

Boolean indicating whether the dataset is a stream

If the dataset is a stream, the dataset item is generated on demand from its iterator.

class datumaro.plugins.data_formats.image_dir.ImageDirExporter(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'#