class documentation
class FIWDatasetImporter(foud.BatchDatasetImporter): (source)
Constructor: FIWDatasetImporter(dataset_dir, shuffle, seed, max_samples)
Importer for Faces in the Wild-formatted datasets stored on disk.
See this page for format details.
Method | import |
Imports samples and labels stored on disk following the format of the Families in the Wild dataset. |
Inherited from BatchDatasetImporter
:
Method | __next__ |
Returns information about the next sample in the dataset. |
Property | has |
Whether this importer produces a dataset info dictionary. |
Inherited from DatasetImporter
(via BatchDatasetImporter
):
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __len__ |
The total number of samples that will be imported. |
Method | close |
Performs any necessary actions after the last sample has been imported. |
Method | get |
Returns the dataset info for the dataset. |
Method | setup |
Performs any necessary setup before importing the first sample in the dataset. |
Method | _preprocess |
Internal utility that preprocesses the given list---which is presumed to be a list defining the samples that should be imported---by applying the values of the shuffle, seed, and max_samples parameters of the importer. |
Imports samples and labels stored on disk following the format of the Families in the Wild dataset.
Parameters | |
dataset | a fiftyone.core.dataset.Dataset |
tags:None | an optional list of tags to attach to each sample |
Returns | |
a list of IDs of the samples that were added to the dataset |