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: Optional[str] = None, ctx: Optional[ImportContext] = 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]#
class datumaro.plugins.data_formats.lfw.LfwExporter(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'#