Function mindspore::dataset::LSUN
Defined in File datasets.h
Function Documentation
Function to create a LSUNDataset.
Note
The generated dataset has two columns “image” and “label”.
- Parameters
dataset_dir – [in] Path to the root directory that contains the dataset.
usage – [in] Dataset splits of LSUN, can be
train
,valid
,test
orall
.classes – [in] Classes list to load.
decode – [in] Decode the images after reading.
sampler – [in] Sampler object used to choose samples from the dataset.
cache – [in] Tensor cache to use (Default=nullptr, which means no cache is used).
- Returns
Shared pointer to the current LSUNDataset.