datumaro.plugins.data_formats.lfw#

Classes

LfwBase(path, *[, subset, ctx])

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

LfwImporter()

LfwPath()

class datumaro.plugins.data_formats.lfw.LfwPath[source]#

Bases: object

IMAGES_DIR = 'images'#
ANNOTATION_DIR = 'annotations'#
LANDMARKS_FILE = 'landmarks.txt'#
PAIRS_FILE = 'pairs.txt'#
PEOPLE_FILE = 'people.txt'#
IMAGE_EXT = '.jpg'#
PATTERN = re.compile('([\\w-]+)_([-\\d]+)')#
class datumaro.plugins.data_formats.lfw.LfwBase(path: str, *, subset: str | None = None, ctx: ImportContext | None = None)[source]#

Bases: SubsetBase

static get_image_name(person, image_id)[source]#
class datumaro.plugins.data_formats.lfw.LfwImporter[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.lfw.LfwExporter(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'#