Skip to content

Commit 9521981

Browse files
committed
docs: add transforms in OxfordIIITPet. (fix #8812 )
1 parent bf735b8 commit 9521981

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torchvision/datasets/oxford_iiit_pet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class OxfordIIITPet(VisionDataset):
2727
transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
2828
version. E.g, ``transforms.RandomCrop``.
2929
target_transform (callable, optional): A function/transform that takes in the target and transforms it.
30+
transforms (callable, optional): A function/transform that takes input sample
31+
and its target as entry and returns a transformed version.
3032
download (bool, optional): If True, downloads the dataset from the internet and puts it into
3133
``root/oxford-iiit-pet``. If dataset is already downloaded, it is not downloaded again.
3234
"""

0 commit comments

Comments
 (0)