Unverified Commit 87f1521f authored by anthony-cabacungan's avatar anthony-cabacungan Committed by GitHub
Browse files

Fixed typos (#8208)

parent be519351
...@@ -23,7 +23,7 @@ class Caltech101(VisionDataset): ...@@ -23,7 +23,7 @@ class Caltech101(VisionDataset):
target types. ``category`` represents the target class, and target types. ``category`` represents the target class, and
``annotation`` is a list of points from a hand-generated outline. ``annotation`` is a list of points from a hand-generated outline.
Defaults to ``category``. Defaults to ``category``.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a 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
target and transforms it. target and transforms it.
...@@ -151,7 +151,7 @@ class Caltech256(VisionDataset): ...@@ -151,7 +151,7 @@ class Caltech256(VisionDataset):
Args: Args:
root (string): Root directory of dataset where directory root (string): Root directory of dataset where directory
``caltech256`` exists or will be saved to if download is set to True. ``caltech256`` exists or will be saved to if download is set to True.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a 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
target and transforms it. target and transforms it.
......
...@@ -31,7 +31,7 @@ class CelebA(VisionDataset): ...@@ -31,7 +31,7 @@ class CelebA(VisionDataset):
Defaults to ``attr``. If empty, ``None`` will be returned as target. Defaults to ``attr``. If empty, ``None`` will be returned as target.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a PIL image
and returns a transformed version. E.g, ``transforms.PILToTensor`` and returns a transformed version. E.g, ``transforms.PILToTensor``
target_transform (callable, optional): A function/transform that takes in the target_transform (callable, optional): A function/transform that takes in the
target and transforms it. target and transforms it.
......
...@@ -17,7 +17,7 @@ class CIFAR10(VisionDataset): ...@@ -17,7 +17,7 @@ class CIFAR10(VisionDataset):
``cifar-10-batches-py`` exists or will be saved to if download is set to True. ``cifar-10-batches-py`` exists or will be saved to if download is set to True.
train (bool, optional): If True, creates dataset from training set, otherwise train (bool, optional): If True, creates dataset from training set, otherwise
creates from test set. creates from test set.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a 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
target and transforms it. target and transforms it.
......
...@@ -18,7 +18,7 @@ class CLEVRClassification(VisionDataset): ...@@ -18,7 +18,7 @@ class CLEVRClassification(VisionDataset):
root (string): Root directory of dataset where directory ``root/clevr`` exists or will be saved to if download is root (string): Root directory of dataset where directory ``root/clevr`` exists or will be saved to if download is
set to True. set to True.
split (string, optional): The dataset split, supports ``"train"`` (default), ``"val"``, or ``"test"``. split (string, optional): The dataset split, supports ``"train"`` (default), ``"val"``, or ``"test"``.
transform (callable, optional): A function/transform that takes in an PIL image and returns a transformed transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
version. E.g, ``transforms.RandomCrop`` version. E.g, ``transforms.RandomCrop``
target_transform (callable, optional): A function/transform that takes in them target and transforms it. target_transform (callable, optional): A function/transform that takes in them target and transforms it.
download (bool, optional): If true, downloads the dataset from the internet and puts it in root directory. If download (bool, optional): If true, downloads the dataset from the internet and puts it in root directory. If
......
...@@ -14,7 +14,7 @@ class CocoDetection(VisionDataset): ...@@ -14,7 +14,7 @@ class CocoDetection(VisionDataset):
Args: Args:
root (string): Root directory where images are downloaded to. root (string): Root directory where images are downloaded to.
annFile (string): Path to json annotation file. annFile (string): Path to json annotation file.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a PIL image
and returns a transformed version. E.g, ``transforms.PILToTensor`` and returns a transformed version. E.g, ``transforms.PILToTensor``
target_transform (callable, optional): A function/transform that takes in the target_transform (callable, optional): A function/transform that takes in the
target and transforms it. target and transforms it.
...@@ -65,7 +65,7 @@ class CocoCaptions(CocoDetection): ...@@ -65,7 +65,7 @@ class CocoCaptions(CocoDetection):
Args: Args:
root (string): Root directory where images are downloaded to. root (string): Root directory where images are downloaded to.
annFile (string): Path to json annotation file. annFile (string): Path to json annotation file.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a PIL image
and returns a transformed version. E.g, ``transforms.PILToTensor`` and returns a transformed version. E.g, ``transforms.PILToTensor``
target_transform (callable, optional): A function/transform that takes in the target_transform (callable, optional): A function/transform that takes in the
target and transforms it. target and transforms it.
......
...@@ -16,7 +16,7 @@ class Country211(ImageFolder): ...@@ -16,7 +16,7 @@ class Country211(ImageFolder):
Args: Args:
root (string): Root directory of the dataset. root (string): Root directory of the dataset.
split (string, optional): The dataset split, supports ``"train"`` (default), ``"valid"`` and ``"test"``. split (string, optional): The dataset split, supports ``"train"`` (default), ``"valid"`` and ``"test"``.
transform (callable, optional): A function/transform that takes in an PIL image and returns a transformed transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
version. E.g, ``transforms.RandomCrop``. version. E.g, ``transforms.RandomCrop``.
target_transform (callable, optional): A function/transform that takes in the target and transforms it. target_transform (callable, optional): A function/transform that takes in the target and transforms it.
download (bool, optional): If True, downloads the dataset from the internet and puts it into download (bool, optional): If True, downloads the dataset from the internet and puts it into
......
...@@ -21,7 +21,7 @@ class DTD(VisionDataset): ...@@ -21,7 +21,7 @@ class DTD(VisionDataset):
The partition only changes which split each image belongs to. Thus, regardless of the selected The partition only changes which split each image belongs to. Thus, regardless of the selected
partition, combining all splits will result in all images. partition, combining all splits will result in all images.
transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
version. E.g, ``transforms.RandomCrop``. version. E.g, ``transforms.RandomCrop``.
target_transform (callable, optional): A function/transform that takes in the target and transforms it. target_transform (callable, optional): A function/transform that takes in the target and transforms it.
download (bool, optional): If True, downloads the dataset from the internet and download (bool, optional): If True, downloads the dataset from the internet and
......
...@@ -10,7 +10,7 @@ class EuroSAT(ImageFolder): ...@@ -10,7 +10,7 @@ class EuroSAT(ImageFolder):
Args: Args:
root (string): Root directory of dataset where ``root/eurosat`` exists. root (string): Root directory of dataset where ``root/eurosat`` exists.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a 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
target and transforms it. target and transforms it.
......
...@@ -13,7 +13,7 @@ class FakeData(VisionDataset): ...@@ -13,7 +13,7 @@ class FakeData(VisionDataset):
size (int, optional): Size of the dataset. Default: 1000 images size (int, optional): Size of the dataset. Default: 1000 images
image_size(tuple, optional): Size if the returned images. Default: (3, 224, 224) image_size(tuple, optional): Size if the returned images. Default: (3, 224, 224)
num_classes(int, optional): Number of classes in the dataset. Default: 10 num_classes(int, optional): Number of classes in the dataset. Default: 10
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a 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
target and transforms it. target and transforms it.
......
...@@ -17,7 +17,7 @@ class FER2013(VisionDataset): ...@@ -17,7 +17,7 @@ class FER2013(VisionDataset):
root (string): Root directory of dataset where directory root (string): Root directory of dataset where directory
``root/fer2013`` exists. ``root/fer2013`` exists.
split (string, optional): The dataset split, supports ``"train"`` (default), or ``"test"``. split (string, optional): The dataset split, supports ``"train"`` (default), or ``"test"``.
transform (callable, optional): A function/transform that takes in an PIL image and returns a transformed transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
version. E.g, ``transforms.RandomCrop`` version. E.g, ``transforms.RandomCrop``
target_transform (callable, optional): A function/transform that takes in the target and transforms it. target_transform (callable, optional): A function/transform that takes in the target and transforms it.
""" """
......
...@@ -28,7 +28,7 @@ class FGVCAircraft(VisionDataset): ...@@ -28,7 +28,7 @@ class FGVCAircraft(VisionDataset):
``trainval`` and ``test``. ``trainval`` and ``test``.
annotation_level (str, optional): The annotation level, supports ``variant``, annotation_level (str, optional): The annotation level, supports ``variant``,
``family`` and ``manufacturer``. ``family`` and ``manufacturer``.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a 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
target and transforms it. target and transforms it.
......
...@@ -24,7 +24,7 @@ class Flowers102(VisionDataset): ...@@ -24,7 +24,7 @@ class Flowers102(VisionDataset):
Args: Args:
root (string): Root directory of the dataset. root (string): Root directory of the dataset.
split (string, optional): The dataset split, supports ``"train"`` (default), ``"val"``, or ``"test"``. split (string, optional): The dataset split, supports ``"train"`` (default), ``"val"``, or ``"test"``.
transform (callable, optional): A function/transform that takes in an PIL image and returns a transform (callable, optional): A function/transform that takes in a PIL image and returns a
transformed version. E.g, ``transforms.RandomCrop``. transformed version. E.g, ``transforms.RandomCrop``.
target_transform (callable, optional): A function/transform that takes in the target and transforms it. target_transform (callable, optional): A function/transform that takes in the target and transforms it.
download (bool, optional): If true, downloads the dataset from the internet and download (bool, optional): If true, downloads the dataset from the internet and
......
...@@ -284,7 +284,7 @@ class ImageFolder(DatasetFolder): ...@@ -284,7 +284,7 @@ class ImageFolder(DatasetFolder):
Args: Args:
root (string): Root directory path. root (string): Root directory path.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a 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
target and transforms it. target and transforms it.
......
...@@ -21,7 +21,7 @@ class Food101(VisionDataset): ...@@ -21,7 +21,7 @@ class Food101(VisionDataset):
Args: Args:
root (string): Root directory of the dataset. root (string): Root directory of the dataset.
split (string, optional): The dataset split, supports ``"train"`` (default) and ``"test"``. split (string, optional): The dataset split, supports ``"train"`` (default) and ``"test"``.
transform (callable, optional): A function/transform that takes in an PIL image and returns a transformed transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
version. E.g, ``transforms.RandomCrop``. version. E.g, ``transforms.RandomCrop``.
target_transform (callable, optional): A function/transform that takes in the target and transforms it. target_transform (callable, optional): A function/transform that takes in the target and transforms it.
download (bool, optional): If True, downloads the dataset from the internet and download (bool, optional): If True, downloads the dataset from the internet and
......
...@@ -15,7 +15,7 @@ class GTSRB(VisionDataset): ...@@ -15,7 +15,7 @@ class GTSRB(VisionDataset):
Args: Args:
root (string): Root directory of the dataset. root (string): Root directory of the dataset.
split (string, optional): The dataset split, supports ``"train"`` (default), or ``"test"``. split (string, optional): The dataset split, supports ``"train"`` (default), or ``"test"``.
transform (callable, optional): A function/transform that takes in an PIL image and returns a transformed transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
version. E.g, ``transforms.RandomCrop``. version. E.g, ``transforms.RandomCrop``.
target_transform (callable, optional): A function/transform that takes in the target and transforms it. target_transform (callable, optional): A function/transform that takes in the target and transforms it.
download (bool, optional): If True, downloads the dataset from the internet and download (bool, optional): If True, downloads the dataset from the internet and
......
...@@ -30,7 +30,7 @@ class ImageNet(ImageFolder): ...@@ -30,7 +30,7 @@ class ImageNet(ImageFolder):
Args: Args:
root (string): Root directory of the ImageNet Dataset. root (string): Root directory of the ImageNet Dataset.
split (string, optional): The dataset split, supports ``train``, or ``val``. split (string, optional): The dataset split, supports ``train``, or ``val``.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a 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
target and transforms it. target and transforms it.
......
...@@ -17,7 +17,7 @@ class Imagenette(VisionDataset): ...@@ -17,7 +17,7 @@ class Imagenette(VisionDataset):
size (string, optional): The image size. Supports ``"full"`` (default), ``"320px"``, and ``"160px"``. size (string, optional): The image size. Supports ``"full"`` (default), ``"320px"``, and ``"160px"``.
download (bool, optional): If ``True``, downloads the dataset components and places them in ``root``. Already download (bool, optional): If ``True``, downloads the dataset components and places them in ``root``. Already
downloaded archives are not downloaded again. downloaded archives are not downloaded again.
transform (callable, optional): A function/transform that takes in an PIL image and returns a transformed transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
version, e.g. ``transforms.RandomCrop``. version, e.g. ``transforms.RandomCrop``.
target_transform (callable, optional): A function/transform that takes in the target and transforms it. target_transform (callable, optional): A function/transform that takes in the target and transforms it.
......
...@@ -54,7 +54,7 @@ class INaturalist(VisionDataset): ...@@ -54,7 +54,7 @@ class INaturalist(VisionDataset):
Can also be a list to output a tuple with all specified target types. Can also be a list to output a tuple with all specified target types.
Defaults to ``full``. Defaults to ``full``.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a 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
target and transforms it. target and transforms it.
......
...@@ -56,7 +56,7 @@ class Kinetics(VisionDataset): ...@@ -56,7 +56,7 @@ class Kinetics(VisionDataset):
split (str): split of the dataset to consider; supports ``"train"`` (default) ``"val"`` ``"test"`` split (str): split of the dataset to consider; supports ``"train"`` (default) ``"val"`` ``"test"``
frame_rate (float): If omitted, interpolate different frame rate for each clip. frame_rate (float): If omitted, interpolate different frame rate for each clip.
step_between_clips (int): number of frames between each clip step_between_clips (int): number of frames between each clip
transform (callable, optional): A function/transform that takes in a TxHxWxC video transform (callable, optional): A function/transform that takes in a TxHxWxC video
and returns a transformed version. and returns a transformed version.
download (bool): Download the official version of the dataset to root folder. download (bool): Download the official version of the dataset to root folder.
num_workers (int): Use multiple workers for VideoClips creation num_workers (int): Use multiple workers for VideoClips creation
......
...@@ -101,7 +101,7 @@ class LFWPeople(_LFW): ...@@ -101,7 +101,7 @@ class LFWPeople(_LFW):
``10fold`` (default). ``10fold`` (default).
image_set (str, optional): Type of image funneling to use, ``original``, ``funneled`` or image_set (str, optional): Type of image funneling to use, ``original``, ``funneled`` or
``deepfunneled``. Defaults to ``funneled``. ``deepfunneled``. Defaults to ``funneled``.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a PIL image
and returns a transformed version. E.g, ``transforms.RandomRotation`` and returns a transformed version. E.g, ``transforms.RandomRotation``
target_transform (callable, optional): A function/transform that takes in the target_transform (callable, optional): A function/transform that takes in the
target and transforms it. target and transforms it.
...@@ -183,7 +183,7 @@ class LFWPairs(_LFW): ...@@ -183,7 +183,7 @@ class LFWPairs(_LFW):
``10fold``. Defaults to ``10fold``. ``10fold``. Defaults to ``10fold``.
image_set (str, optional): Type of image funneling to use, ``original``, ``funneled`` or image_set (str, optional): Type of image funneling to use, ``original``, ``funneled`` or
``deepfunneled``. Defaults to ``funneled``. ``deepfunneled``. Defaults to ``funneled``.
transform (callable, optional): A function/transform that takes in an PIL image transform (callable, optional): A function/transform that takes in a PIL image
and returns a transformed version. E.g, ``transforms.RandomRotation`` and returns a transformed version. E.g, ``transforms.RandomRotation``
target_transform (callable, optional): A function/transform that takes in the target_transform (callable, optional): A function/transform that takes in the
target and transforms it. target and transforms it.
......
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