Utils


source

fetch_file

 fetch_file (*args, force=False)

source

data_path

 data_path ()

source

return_list

 return_list (f)
@return_list
def foo(n):
    yield from range(n)

test_eq(foo(10), list(range(10)))

source

mtcnn_aligned

 mtcnn_aligned (path:pathlib.Path, force=False, batched=True)

Uses MTCNN to align and extract faces

Type Default Details
path Path path to unaligned images
force bool False compute MTCNN alignment even if aligned images exist
batched bool True
Returns Path path to aligned images