Imagenette¶
- class torchvision.datasets.Imagenette(root: Union[str, Path], split: str = 'train', size: str = 'full', download=False, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None)[source]¶
Imagenette image classification dataset.
- Parameters:
root (str or
pathlib.Path) – Root directory of the Imagenette dataset.split (string, optional) – The dataset split. Supports
"train"(default), and"val".size (string, optional) – The image size. Supports
"full"(default),"320px", and"160px".download (bool, optional) – If
True, downloads the dataset components and places them inroot. Already downloaded archives are not downloaded again.transform (callable, optional) – A function/transform that takes in a PIL image and returns a transformed version, e.g.
transforms.RandomCrop.target_transform – A function/transform that takes in the target and transforms it.
- Special-members: