Skip to content

Commit

Permalink
docs: add transforms in OxfordIIITPet. (fix pytorch#8812 )
Browse files Browse the repository at this point in the history
  • Loading branch information
GdoongMathew committed Jan 16, 2025
1 parent bf735b8 commit 9521981
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torchvision/datasets/oxford_iiit_pet.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class OxfordIIITPet(VisionDataset):
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.
transforms (callable, optional): A function/transform that takes input sample
and its target as entry and returns a transformed version.
download (bool, optional): If True, downloads the dataset from the internet and puts it into
``root/oxford-iiit-pet``. If dataset is already downloaded, it is not downloaded again.
"""
Expand Down

0 comments on commit 9521981

Please sign in to comment.