datumaro.plugins.data_formats.cifar#

Classes

CifarBase(path, *[, subset, ctx])

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

CifarImporter()

CifarPath()

class datumaro.plugins.data_formats.cifar.CifarPath[source]#

Bases: object

META_10_FILE = 'batches.meta'#
META_100_FILE = 'meta'#
TRAIN_FILE_PREFIX = 'data_batch_'#
USELESS_FILE = 'file.txt~'#
IMAGE_SIZE = 32#
class datumaro.plugins.data_formats.cifar.CifarBase(path: str, *, subset: Optional[str] = None, ctx: Optional[ImportContext] = None)[source]#

Bases: SubsetBase

class datumaro.plugins.data_formats.cifar.CifarImporter[source]#

Bases: Importer

classmethod detect(context: FormatDetectionContext) Optional[FormatDetectionConfidence][source]#
classmethod find_sources(path: str) List[Dict[str, Any]][source]#
class datumaro.plugins.data_formats.cifar.CifarExporter(extractor: IDataset, save_dir: str, *, save_media: Optional[bool] = None, image_ext: Optional[str] = None, default_image_ext: Optional[str] = None, save_dataset_meta: bool = False, save_hashkey_meta: bool = False, stream: bool = False, ctx: Optional[ExportContext] = None)[source]#

Bases: Exporter

DEFAULT_IMAGE_EXT = '.png'#
classmethod patch(dataset, patch, save_dir, **kwargs)[source]#