datumaro.plugins.data_formats.celeba.celeba#

Classes

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

CelebaImporter()

CelebaPath()

class datumaro.plugins.data_formats.celeba.celeba.CelebaPath[source]#

Bases: object

IMAGES_DIR = 'Img/img_celeba'#
LABELS_FILE = 'Anno/identity_CelebA.txt'#
BBOXES_FILE = 'Anno/list_bbox_celeba.txt'#
ATTRS_FILE = 'Anno/list_attr_celeba.txt'#
LANDMARKS_FILE = 'Anno/list_landmarks_celeba.txt'#
SUBSETS_FILE = 'Eval/list_eval_partition.txt'#
SUBSETS = {'0': 'train', '1': 'val', '2': 'test'}#
BBOXES_HEADER = 'image_id x_1 y_1 width height'#
class datumaro.plugins.data_formats.celeba.celeba.CelebaBase(path: str, *, subset: str | None = None, ctx: ImportContext | None = None)[source]#

Bases: SubsetBase

split_annotation(line)[source]#
class datumaro.plugins.data_formats.celeba.celeba.CelebaImporter[source]#

Bases: Importer

PATH_CLS#

alias of CelebaPath

classmethod detect(context: FormatDetectionContext) FormatDetectionConfidence[source]#
classmethod find_sources(path)[source]#
classmethod get_file_extensions() List[str][source]#