GTSRB — Torchvision 0.22 documentation (original) (raw)

class torchvision.datasets.GTSRB(root: Union[str, Path], split: str = 'train', transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, download: bool = False)[source]

German Traffic Sign Recognition Benchmark (GTSRB) Dataset.

Parameters:

Special-members:

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

Parameters:

index (int) – Index

Returns:

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

Return type:

(Any)