VisionDataset — Torchvision 0.22 documentation (original) (raw)

class torchvision.datasets.VisionDataset(root: Optional[Union[str, Path]] = None, transforms: Optional[Callable] = None, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None)[source]

Base Class For making datasets which are compatible with torchvision. It is necessary to override the __getitem__ and __len__ method.

Parameters:

Note

transforms and the combination of transform and target_transform are mutually exclusive.

Examples using VisionDataset: