datumaro.plugins.data_formats.widerface#

Classes

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

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

WiderFaceImporter()

WiderFacePath()

class datumaro.plugins.data_formats.widerface.WiderFacePath[source]#

Bases: object

IMAGE_EXT = '.jpg'#
ANNOTATIONS_DIR = 'wider_face_split'#
IMAGES_DIR = 'images'#
SUBSET_DIR = 'WIDER_'#
LABELS_FILE = 'labels.txt'#
IMAGES_DIR_NO_LABEL = 'no_label'#
BBOX_ATTRIBUTES = ['blur', 'expression', 'illumination', 'occluded', 'pose', 'invalid']#
DEFAULT_LABEL = 'face'#
class datumaro.plugins.data_formats.widerface.WiderFaceBase(path: str, *, subset: str | None = None, ctx: ImportContext | None = None)[source]#

Bases: SubsetBase

class datumaro.plugins.data_formats.widerface.WiderFaceImporter[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.widerface.WiderFaceExporter(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'#