datumaro.plugins.data_formats.mnist_csv#

Classes

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

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

MnistCsvImporter()

MnistCsvPath()

class datumaro.plugins.data_formats.mnist_csv.MnistCsvPath[source]#

Bases: object

IMAGE_SIZE = 28#
NONE_LABEL = -1#
class datumaro.plugins.data_formats.mnist_csv.MnistCsvBase(path: str, *, subset: str | None = None, ctx: ImportContext | None = None)[source]#

Bases: SubsetBase

class datumaro.plugins.data_formats.mnist_csv.MnistCsvImporter[source]#

Bases: Importer

DETECT_CONFIDENCE = 20#
classmethod find_sources(path)[source]#
classmethod get_file_extensions() List[str][source]#
class datumaro.plugins.data_formats.mnist_csv.MnistCsvExporter(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 = '.png'#
save_in_csv(path, data)[source]#
save_labels()[source]#