Flickr8k¶
- class torchvision.datasets.Flickr8k(root: str, ann_file: str, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None)[source]¶
Flickr8k Entities Dataset.
- Parameters:
root (string) – Root directory where images are downloaded to.
ann_file (string) – Path to annotation file.
transform (callable, optional) – A function/transform that takes in a PIL image and returns a transformed version. E.g,
transforms.PILToTensor
target_transform (callable, optional) – A function/transform that takes in the target and transforms it.
- Special-members: