- class torchvision.datasets.Places365(root: str, split: str = 'train-standard', small: bool = False, download: bool = False, transform: ~typing.Optional[~typing.Callable] = None, target_transform: ~typing.Optional[~typing.Callable] = None, loader: ~typing.Callable[[str], ~typing.Any] = <function default_loader>)¶
Places365 classification dataset.
root (string) – Root directory of the Places365 dataset.
split (string, optional) – The dataset split. Can be one of
small (bool, optional) – If
True, uses the small images, i.e. resized to 256 x 256 pixels, instead of the high resolution ones.
download (bool, optional) – If
True, downloads the dataset components and places them in
root. Already downloaded archives are not downloaded again.
transform (callable, optional) – A function/transform that takes in an PIL image and returns a transformed version. E.g,
target_transform (callable, optional) – A function/transform that takes in the target and transforms it.
loader – A function to load an image given its path.