mnist_format module

class datumaro.plugins.mnist_format.MnistPath[source]

Bases: object

TEST_LABELS_FILE = 't10k-labels-idx1-ubyte.gz'
TEST_IMAGES_FILE = 't10k-images-idx3-ubyte.gz'
LABELS_FILE = '-labels-idx1-ubyte.gz'
IMAGES_FILE = '-images-idx3-ubyte.gz'
IMAGE_SIZE = 28
NONE_LABEL = 255
class datumaro.plugins.mnist_format.MnistExtractor(path, subset=None)[source]

Bases: datumaro.components.extractor.SourceExtractor

__init__(path, subset=None)[source]
class datumaro.plugins.mnist_format.MnistImporter[source]

Bases: datumaro.components.extractor.Importer

classmethod find_sources(path)[source]
class datumaro.plugins.mnist_format.MnistConverter(extractor: datumaro.components.extractor.IExtractor, save_dir: str, *, save_images=None, save_media: Optional[bool] = None, image_ext: Optional[str] = None, default_image_ext: Optional[str] = None, save_dataset_meta: bool = False, ctx: Optional[datumaro.components.converter.ExportContext] = None)[source]

Bases: datumaro.components.converter.Converter

DEFAULT_IMAGE_EXT = '.png'
apply()[source]
save_annotations(path, data)[source]
save_images(path, data)[source]
save_labels()[source]