Function mindspore::dataset::LSUN

Function Documentation

inline std::shared_ptr<LSUNDataset> mindspore::dataset::LSUN(const std::string &dataset_dir, const std::string &usage, const std::vector<std::string> &classes, bool decode, const Sampler *sampler, const std::shared_ptr<DatasetCache> &cache = nullptr)

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 or all.

  • 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.