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
-
LFWDataset(const std::vector<char> &dataset_dir, const std::vector<char> &task, const std::vector<char> &usage, const std::vector<char> &image_set, bool decode, const std::shared_ptr<Sampler> &sampler, const std::shared_ptr<DatasetCache> &cache)
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(const std::vector<char> &dataset_dir, const std::vector<char> &task, const std::vector<char> &usage, const std::vector<char> &image_set, bool decode, const Sampler *sampler, const std::shared_ptr<DatasetCache> &cache)
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(const std::vector<char> &dataset_dir, const std::vector<char> &task, const std::vector<char> &usage, const std::vector<char> &image_set, bool decode, const std::reference_wrapper<Sampler> &sampler, const std::shared_ptr<DatasetCache> &cache)
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.
-
LFWDataset(const std::vector<char> &dataset_dir, const std::vector<char> &task, const std::vector<char> &usage, const std::vector<char> &image_set, bool decode, const std::shared_ptr<Sampler> &sampler, const std::shared_ptr<DatasetCache> &cache)