FER2013¶
- class torchvision.datasets.FER2013(root: Union[str, Path], split: str = 'train', transform: Optional[Callable] = None, target_transform: Optional[Callable] = None)[source]¶
FER2013 Dataset.
- Parameters:
root (str or
pathlib.Path
) – Root directory of dataset where directoryroot/fer2013
exists.split (string, optional) – The dataset split, supports
"train"
(default), or"test"
.transform (callable, optional) – A function/transform that takes in a PIL image and returns a transformed version. E.g,
transforms.RandomCrop
target_transform (callable, optional) – A function/transform that takes in the target and transforms it.
- Special-members: