datumaro.plugins.data_formats.imagenet_txt#
Classes
|
|
|
|
- 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]#
-
- classmethod detect(context: FormatDetectionContext) None [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'#