SUN397 — Torchvision 0.22 documentation (original) (raw)

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

The SUN397 Data Set.

The SUN397 or Scene UNderstanding (SUN) is a dataset for scene recognition consisting of 397 categories with 108’754 images.

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)