BSD100HR#
- class deepinv.datasets.BSD100HR(root=None, download=False, transform=None, verbose=True, use_dict_output=False)[source]#
Bases:
ImageFolderDataset for BSD100.
The BSD100 dataset [1] is a dataset consisting of 100 images commonly used for testing performance of image reconstruction algorithms. Images have sizes ranging from 240Ă—160 to 480Ă—320 pixels.
Raw data file structure:
self.root --- BSD100_HR.tar.gz | --- BSD100_HR --- 3096.png | | | --- 8023.png | --- 12084.png | --- ... | --- xxx
Raw dataset source : https://huggingface.co/datasets/eugenesiow/BSD100
- Parameters:
root (str) – Root directory of dataset. Directory path from where we load and save the dataset.
download (bool) – If
True, downloads the dataset from the internet and puts it in root directory. If dataset is already downloaded, it is not downloaded again. Default at False.transform: (Callable) – (optional) A function/transform that takes in a PIL image and returns a transformed version. E.g,
torchvision.transforms.RandomCropverbose (bool) – Print a message if the dataset has been correctly downloaded. Default
True.use_dict_output (bool) – whether to return output as dict with keys “x”, “y”, “params” instead of tuple (default
False).
- References: