SBU — Torchvision 0.22 documentation (original) (raw)

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

SBU Captioned Photo Dataset.

Parameters:

Special-members:

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

Parameters:

index (int) – Index

Returns:

(image, target) where target is a caption for the photo.

Return type:

tuple