Imagenette — Torchvision 0.22 documentation (original) (raw)

class torchvision.datasets.Imagenette(root: ~typing.Union[str, ~pathlib.Path], split: str = 'train', size: str = 'full', download=False, transform: ~typing.Optional[~typing.Callable] = None, target_transform: ~typing.Optional[~typing.Callable] = None, loader: ~typing.Callable[[str], ~typing.Any] = <function default_loader>)[source]

Imagenette image classification dataset.

Parameters:

Special-members:

__getitem__(idx: int) → Tuple[Any, Any][source]

Parameters:

index (int) – Index

Returns:

Sample and meta data, optionally transformed by the respective transforms.

Return type:

(Any)