Загрузка
LSUN dataset.
You will need to install the lmdb package to use this dataset: run
pip install lmdb
root (str or pathlib.Path) – Root directory for the database files.
classes (string or list) – One of {‘train’, ‘val’, ‘test’} or a list of categories to load. e,g. [‘bedroom_train’, ‘church_outdoor_train’].
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.
Tuple (image, target) where target is the index of the target category.