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: Optional[str] = None, ctx: Optional[ImportContext] = None, labels: Union[Iterable[str], str] = 'file', labels_file: str = 'synsets.txt', image_dir: Optional[str] = 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]#
class datumaro.plugins.data_formats.imagenet_txt.ImagenetTxtExporter(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 = '.jpg'#