Загрузка
A fake dataset that returns randomly generated images and returns them as PIL images
size (int, optional) – Size of the dataset. Default: 1000 images
image_size (tuple, optional) – Size of the returned images. Default: (3, 224, 224)
num_classes (int, optional) – Number of classes in the dataset. Default: 10
transform (callable, optional) – A function/transform that takes in a PIL image
and returns a transformed version. E.g, transforms.RandomCrop
target_transform (callable, optional) – A function/transform that takes in the target and transforms it.
random_offset (int) – Offsets the index-based random seed used to generate each image. Default: 0
Examples using FakeData:
(image, target) where target is class_index of the target class.