@return_list
def foo(n):
yield from range(n)
test_eq(foo(10), list(range(10)))Utils
fetch_file
fetch_file (*args, force=False)
data_path
data_path ()
return_list
return_list (f)
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 |