datumaro.plugins.data_formats.vgg_face2#

Classes

VggFace2Base(path, *[, ctx])

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

VggFace2Importer()

VggFace2Path()

class datumaro.plugins.data_formats.vgg_face2.VggFace2Path[source]#

Bases: object

ANNOTATION_DIR = 'bb_landmark'#
IMAGE_EXT = '.jpg'#
BBOXES_FILE = 'loose_bb_'#
LANDMARKS_FILE = 'loose_landmark_'#
LABELS_FILE = 'labels.txt'#
IMAGES_DIR_NO_LABEL = 'no_label'#
class datumaro.plugins.data_formats.vgg_face2.VggFace2Base(path: str, *, ctx: ImportContext | None = None)[source]#

Bases: DatasetBase

categories()[source]#

Returns metainfo about dataset labels.

class datumaro.plugins.data_formats.vgg_face2.VggFace2Importer[source]#

Bases: Importer

classmethod detect(context: FormatDetectionContext) None[source]#
classmethod find_sources(path)[source]#
classmethod get_file_extensions() List[str][source]#
class datumaro.plugins.data_formats.vgg_face2.VggFace2Exporter(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'#