CIFAR100C#
- class torch_uncertainty.datasets.classification.CIFAR100C(root, transform=None, target_transform=None, subset='all', shift_severity=1, download=False)[source]#
The corrupted CIFAR-100-C Dataset.
- Parameters:
root (
Path|str) – Root directory of the datasets.transform (
Callable|None) – A function/transform that takes in a PIL image and returns a transformed version. E.g,transforms.RandomCrop. Defaults toNone.target_transform (
Callable|None) – A function/transform that takes in the target and transforms it. Defaults toNone.subset (
str) – The subset to use, one ofallor the keys incifarc_subsets.shift_severity (
int) – The shift_severity of the corruption, between 1 and 5.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. Defaults to False.kwargs – Additional keyword arguments passed to the parent class (CIFAR-10-C).
See also
CIFAR10C- The corrupted CIFAR-10-C dataset.
References