module documentation

Utilities for working with the Labeled Faces in the Wild dataset.

Copyright 2017-2025, Voxel51, Inc.

Function download_lfw_dataset Downloads and extracts the Labeled Faces in the Wild dataset.
Variable logger Undocumented
Function _download_splits Undocumented
Function _download_videos Undocumented
Function _load_split_info Undocumented
Constant _TEST_DOWNLOAD_LINK Undocumented
Constant _TRAIN_DOWNLOAD_LINK Undocumented
Constant _VIDEOS_DOWNLOAD_LINK Undocumented
def download_lfw_dataset(dataset_dir, scratch_dir=None, cleanup=True): (source)

Downloads and extracts the Labeled Faces in the Wild dataset.

Any existing files are not re-downloaded.

Parameters
dataset_dirthe directory to output the final dataset
scratch_dir:Nonea scratch directory to use to store temporary files
cleanup:Truewhether to cleanup the scratch directory after extraction

Undocumented

def _download_splits(scratch_dir): (source)

Undocumented

def _download_videos(scratch_dir): (source)

Undocumented

def _load_split_info(split_path): (source)

Undocumented

_TEST_DOWNLOAD_LINK: str = (source)

Undocumented

Value
'http://vis-www.cs.umass.edu/lfw/peopleDevTest.txt'
_TRAIN_DOWNLOAD_LINK: str = (source)

Undocumented

Value
'http://vis-www.cs.umass.edu/lfw/peopleDevTrain.txt'
_VIDEOS_DOWNLOAD_LINK: str = (source)

Undocumented

Value
'http://vis-www.cs.umass.edu/lfw/lfw.tgz'