datumaro.plugins.data_formats.imagenet_txt#

Classes

ImagenetTxtBase(path, *[, subset, ctx, ...])

ImagenetTxtExporter(extractor, save_dir, *)

ImagenetTxtImporter()

ImagenetTxtPath()

class datumaro.plugins.data_formats.imagenet_txt.ImagenetTxtPath[source]#

Bases: object

LABELS_FILE = 'synsets.txt'#
IMAGE_DIR = 'images'#
class datumaro.plugins.data_formats.imagenet_txt.ImagenetTxtBase(path: str, *, subset: str | None = None, ctx: ImportContext | None = None, labels: Iterable[str] | str = 'file', labels_file: str = 'synsets.txt', image_dir: str | None = None)[source]#

Bases: SubsetBase

class datumaro.plugins.data_formats.imagenet_txt.ImagenetTxtImporter[source]#

Bases: Importer, CliPlugin

classmethod detect(context: FormatDetectionContext) None[source]#
classmethod build_cmdline_parser(**kwargs)[source]#
classmethod find_sources_with_params(path, **extra_params)[source]#
classmethod get_file_extensions() List[str][source]#
class datumaro.plugins.data_formats.imagenet_txt.ImagenetTxtExporter(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'#