Omniglot — Torchvision 0.22 documentation (original) (raw)

class torchvision.datasets.Omniglot(root: Union[str, Path], background: bool = True, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, download: bool = False, loader: Optional[Callable[[Union[str, Path]], Any]] = None)[source]

Omniglot Dataset.

Parameters:

Special-members:

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

Parameters:

index (int) – Index

Returns:

(image, target) where target is index of the target character class.

Return type:

tuple