module documentation
Utilities for working with the Families in the Wild dataset.
Class |
|
Importer for Faces in the Wild-formatted datasets stored on disk. |
Function | download |
Downloads and extracts the Families in the Wild dataset. |
Function | get |
Creates a mapping of family_id/member_id identifier to a list of filepaths for each person. |
Function | get |
Gets a list of all pairs of people that are related and the label of their relation, either through the "kinships" or "relationships" field. |
Variable | logger |
Undocumented |
Function | _download |
Undocumented |
Function | _download |
Undocumented |
Function | _format |
Undocumented |
Function | _get |
Undocumented |
Function | _get |
Undocumented |
Function | _get |
Undocumented |
Function | _get |
Undocumented |
Function | _get |
Undocumented |
Function | _get |
Undocumented |
Function | _is |
Undocumented |
Function | _is |
Undocumented |
Function | _load |
Undocumented |
Function | _load |
Undocumented |
Function | _organize |
Undocumented |
Function | _organize |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
Constant | _IMAGES |
Undocumented |
Constant | _LISTS |
Undocumented |
Constant | _MD5 |
Undocumented |
Constant | _MD5 |
Undocumented |
Constant | _RELATIONSHIP |
Undocumented |
Constant | _SPLITS |
Undocumented |
Downloads and extracts the Families in the Wild dataset.
Any existing files are not re-downloaded.
Parameters | |
dataset | the directory to output the final dataset |
split | the split being loaded |
scratchNone | a scratch directory to use to store temporary files |
cleanup:True | whether to cleanup the scratch directory after extraction |
Creates a mapping of family_id/member_id identifier to a list of filepaths for each person.
Example:
{ "F0325/MID4": [ "/path/to/fiftyone/fiw/train/data/F0325/MID4/P03451_face4.jpg", ... ], ... }
Parameters | |
samples | a
fiftyone.core.collections.SampleCollection |
Returns | |
a dict mapping family_id/member_id identifiers to a list of filepaths containing images of the corresponding person |
Gets a list of all pairs of people that are related and the label of their relation, either through the "kinships" or "relationships" field.
Example:
[ ["F0009/MID2", "F0009/MID4", "sibling"], ... ]
Parameters | |
samples | a
fiftyone.core.collections.SampleCollection |
label | the type of label of which to return pairwise listings options are ("kinships", "relationships") |
Returns | |
a list of triplets containing the identifier of person 1, identifier of person 2, and their kinship or relationship |
def _load_member(dir_images, family_id, member_id, labels, face_indices, tags, kinship_map):
(source)
¶
Undocumented