Class LFWDataset
Defined in File datasets.h
Inheritance Relationships
Base Type
public mindspore::dataset::Dataset
(Class Dataset)
Class Documentation
-
class LFWDataset : public mindspore::dataset::Dataset
A source dataset for reading and parsing LFW dataset.
Public Functions
Constructor of LFWDataset.
- Parameters
dataset_dir – [in] Path to the root directory that contains the dataset.
task – [in] Set the task type of reading LFW, support “people” and “pairs”.
usage – [in] The image split to use, support “10fold”, “train”, “test” and “all”.
image_set – [in] Image set of image funneling to use, support “original”, “funneled” and “deepfunneled”.
decode – [in] Decode the images after reading.
sampler – [in] Shared pointer to a sampler object used to choose samples from the dataset.
cache – [in] Tensor cache to use.
Constructor of LFWDataset.
- Parameters
dataset_dir – [in] Path to the root directory that contains the dataset.
task – [in] Set the task type of reading LFW, support “people” and “pairs”.
usage – [in] The image split to use, support “10fold”, “train”, “test” and “all”.
image_set – [in] Image set of image funneling to use, support “original”, “funneled” and “deepfunneled”.
decode – [in] Decode the images after reading.
sampler – [in] Shared pointer to a sampler object used to choose samples from the dataset.
cache – [in] Tensor cache to use.
Constructor of LFWDataset.
- Parameters
dataset_dir – [in] Path to the root directory that contains the dataset.
task – [in] Set the task type of reading LFW, support “people” and “pairs”.
usage – [in] The image split to use, support “10fold”, “train”, “test” and “all”.
image_set – [in] Image set of image funneling to use, support “original”, “funneled” and “deepfunneled”.
decode – [in] Decode the images after reading.
sampler – [in] Shared pointer to a sampler object used to choose samples from the dataset.
cache – [in] Tensor cache to use.
-
~LFWDataset() override = default
Destructor of LFWDataset.