Unverified Commit 848838ff authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Fix docstring of Caltech101 dataset (#4342)

parent 7f71e7a0
...@@ -18,9 +18,10 @@ class Caltech101(VisionDataset): ...@@ -18,9 +18,10 @@ class Caltech101(VisionDataset):
root (string): Root directory of dataset where directory root (string): Root directory of dataset where directory
``caltech101`` exists or will be saved to if download is set to True. ``caltech101`` exists or will be saved to if download is set to True.
target_type (string or list, optional): Type of target to use, ``category`` or target_type (string or list, optional): Type of target to use, ``category`` or
``annotation``. Can also be a list to output a tuple with all specified target types. ``annotation``. Can also be a list to output a tuple with all specified
``category`` represents the target class, and ``annotation`` is a list of points target types. ``category`` represents the target class, and
from a hand-generated outline. Defaults to ``category``. ``annotation`` is a list of points from a hand-generated outline.
Defaults to ``category``.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in an PIL image
and returns a transformed version. E.g, ``transforms.RandomCrop`` and returns a transformed version. E.g, ``transforms.RandomCrop``
target_transform (callable, optional): A function/transform that takes in the target_transform (callable, optional): A function/transform that takes in the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment