Function mindspore::dataset::FakeImage
Defined in File datasets.h
Function Documentation
Function to create a FakeImageDataset. \notes The generated dataset has two columns [“image”, “label”].
- Parameters
num_images – [in] The number of images to generate, which must be positive (default = 1000).
image_size – [in] Size of the images, which must be a vector of three positive values (default = {224, 224, 3}).
num_classes – [in] The number of classes of the images, which must be positive (default = 10).
base_seed – [in] The base seed to generate the images (default = 0).
sampler – [in] Shared pointer to a sampler object used to choose samples from the dataset. If sampler is not given, a
RandomSampler
will be used to randomly iterate the entire dataset (default = RandomSampler()).cache – [in] Tensor cache to use (default=nullptr which means no cache is used).
- Returns
Shared pointer to the current FakeDataset.