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

Fixed typos (#8208)

parent be519351
...@@ -63,7 +63,7 @@ class LSUN(VisionDataset): ...@@ -63,7 +63,7 @@ class LSUN(VisionDataset):
root (string): Root directory for the database files. root (string): Root directory for the database files.
classes (string or list): One of {'train', 'val', 'test'} or a list of classes (string or list): One of {'train', 'val', 'test'} or a list of
categories to load. e,g. ['bedroom_train', 'church_outdoor_train']. categories to load. e,g. ['bedroom_train', 'church_outdoor_train'].
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.
......
...@@ -27,7 +27,7 @@ class MNIST(VisionDataset): ...@@ -27,7 +27,7 @@ class MNIST(VisionDataset):
download (bool, optional): If True, downloads the dataset from the internet and download (bool, optional): If True, downloads the dataset from the internet and
puts it in root directory. If dataset is already downloaded, it is not puts it in root directory. If dataset is already downloaded, it is not
downloaded again. downloaded again.
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.
...@@ -210,7 +210,7 @@ class FashionMNIST(MNIST): ...@@ -210,7 +210,7 @@ class FashionMNIST(MNIST):
download (bool, optional): If True, downloads the dataset from the internet and download (bool, optional): If True, downloads the dataset from the internet and
puts it in root directory. If dataset is already downloaded, it is not puts it in root directory. If dataset is already downloaded, it is not
downloaded again. downloaded again.
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.
...@@ -238,7 +238,7 @@ class KMNIST(MNIST): ...@@ -238,7 +238,7 @@ class KMNIST(MNIST):
download (bool, optional): If True, downloads the dataset from the internet and download (bool, optional): If True, downloads the dataset from the internet and
puts it in root directory. If dataset is already downloaded, it is not puts it in root directory. If dataset is already downloaded, it is not
downloaded again. downloaded again.
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.
...@@ -269,7 +269,7 @@ class EMNIST(MNIST): ...@@ -269,7 +269,7 @@ class EMNIST(MNIST):
download (bool, optional): If True, downloads the dataset from the internet and download (bool, optional): If True, downloads the dataset from the internet and
puts it in root directory. If dataset is already downloaded, it is not puts it in root directory. If dataset is already downloaded, it is not
downloaded again. downloaded again.
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.
...@@ -360,7 +360,7 @@ class QMNIST(MNIST): ...@@ -360,7 +360,7 @@ class QMNIST(MNIST):
the internet and puts it in root directory. If dataset is the internet and puts it in root directory. If dataset is
already downloaded, it is not downloaded again. already downloaded, it is not downloaded again.
transform (callable, optional): A function/transform that transform (callable, optional): A function/transform that
takes in an PIL image and returns a transformed 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 target_transform (callable, optional): A function/transform
that takes in the target and transforms it. that takes in the target and transforms it.
......
...@@ -17,7 +17,7 @@ class MovingMNIST(VisionDataset): ...@@ -17,7 +17,7 @@ class MovingMNIST(VisionDataset):
split_ratio (int, optional): The split ratio of number of frames. If ``split="train"``, the first split split_ratio (int, optional): The split ratio of number of frames. If ``split="train"``, the first split
frames ``data[:, :split_ratio]`` is returned. If ``split="test"``, the last split frames ``data[:, split_ratio:]`` frames ``data[:, :split_ratio]`` is returned. If ``split="test"``, the last split frames ``data[:, split_ratio:]``
is returned. If ``split=None``, this parameter is ignored and the all frames data is returned. is returned. If ``split=None``, this parameter is ignored and the all frames data is returned.
transform (callable, optional): A function/transform that takes in an torch Tensor transform (callable, optional): A function/transform that takes in a torch Tensor
and returns a transformed version. E.g, ``transforms.RandomCrop`` and returns a transformed version. E.g, ``transforms.RandomCrop``
download (bool, optional): If true, downloads the dataset from the internet and download (bool, optional): If true, downloads the dataset from the internet and
puts it in root directory. If dataset is already downloaded, it is not puts it in root directory. If dataset is already downloaded, it is not
......
...@@ -15,7 +15,7 @@ class Omniglot(VisionDataset): ...@@ -15,7 +15,7 @@ class Omniglot(VisionDataset):
``omniglot-py`` exists. ``omniglot-py`` exists.
background (bool, optional): If True, creates dataset from the "background" set, otherwise background (bool, optional): If True, creates dataset from the "background" set, otherwise
creates from the "evaluation" set. This terminology is defined by the authors. creates from the "evaluation" set. This terminology is defined by the authors.
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.
......
...@@ -26,7 +26,7 @@ class PhotoTour(VisionDataset): ...@@ -26,7 +26,7 @@ class PhotoTour(VisionDataset):
Args: Args:
root (string): Root directory where images are. root (string): Root directory where images are.
name (string): Name of the dataset to load. name (string): Name of the dataset to load.
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. and returns a transformed version.
download (bool, optional): If true, downloads the dataset from the internet and download (bool, optional): If true, downloads the dataset from the internet and
puts it in root directory. If dataset is already downloaded, it is not puts it in root directory. If dataset is already downloaded, it is not
......
...@@ -19,7 +19,7 @@ class Places365(VisionDataset): ...@@ -19,7 +19,7 @@ class Places365(VisionDataset):
high resolution ones. high resolution ones.
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 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.
......
...@@ -22,7 +22,7 @@ class RenderedSST2(VisionDataset): ...@@ -22,7 +22,7 @@ class RenderedSST2(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"` and ``"test"``. split (string, optional): The dataset split, supports ``"train"`` (default), `"val"` 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
......
...@@ -14,7 +14,7 @@ class SEMEION(VisionDataset): ...@@ -14,7 +14,7 @@ class SEMEION(VisionDataset):
Args: Args:
root (string): Root directory of dataset where directory root (string): Root directory of dataset where directory
``semeion.py`` exists. ``semeion.py`` 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.
......
...@@ -21,7 +21,7 @@ class StanfordCars(VisionDataset): ...@@ -21,7 +21,7 @@ class StanfordCars(VisionDataset):
Args: Args:
root (string): Root directory of dataset root (string): Root directory of 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 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.
......
...@@ -19,7 +19,7 @@ class STL10(VisionDataset): ...@@ -19,7 +19,7 @@ class STL10(VisionDataset):
folds (int, optional): One of {0-9} or None. folds (int, optional): One of {0-9} or None.
For training, loads one of the 10 pre-defined folds of 1k samples for the For training, loads one of the 10 pre-defined folds of 1k samples for the
standard evaluation procedure. If no value is passed, loads the 5k samples. standard evaluation procedure. If no value is passed, loads the 5k samples.
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.
......
...@@ -15,7 +15,7 @@ class SUN397(VisionDataset): ...@@ -15,7 +15,7 @@ class SUN397(VisionDataset):
Args: Args:
root (string): Root directory of the dataset. root (string): Root directory of the dataset.
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
......
...@@ -22,7 +22,7 @@ class SVHN(VisionDataset): ...@@ -22,7 +22,7 @@ class SVHN(VisionDataset):
root (string): Root directory of the dataset where the data is stored. root (string): Root directory of the dataset where the data is stored.
split (string): One of {'train', 'test', 'extra'}. split (string): One of {'train', 'test', 'extra'}.
Accordingly dataset is selected. 'extra' is Extra training set. Accordingly dataset is selected. 'extra' is Extra training 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 USPS(VisionDataset): ...@@ -18,7 +18,7 @@ class USPS(VisionDataset):
root (string): Root directory of dataset to store``USPS`` data files. root (string): Root directory of dataset to store``USPS`` data files.
train (bool, optional): If True, creates dataset from ``usps.bz2``, train (bool, optional): If True, creates dataset from ``usps.bz2``,
otherwise from ``usps.t.bz2``. otherwise from ``usps.t.bz2``.
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.
......
...@@ -15,7 +15,7 @@ class VisionDataset(data.Dataset): ...@@ -15,7 +15,7 @@ class VisionDataset(data.Dataset):
root (string, optional): Root directory of dataset. Only used for `__repr__`. root (string, optional): Root directory of dataset. Only used for `__repr__`.
transforms (callable, optional): A function/transforms that takes in transforms (callable, optional): A function/transforms that takes in
an image and a label and returns the transformed versions of both. an image and a label and returns the transformed versions of both.
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.
......
...@@ -128,7 +128,7 @@ class VOCSegmentation(_VOCBase): ...@@ -128,7 +128,7 @@ class VOCSegmentation(_VOCBase):
download (bool, optional): If true, downloads the dataset from the internet and download (bool, optional): If true, downloads the dataset from the internet and
puts it in root directory. If dataset is already downloaded, it is not puts it in root directory. If dataset is already downloaded, it is not
downloaded again. downloaded again.
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.
...@@ -173,7 +173,7 @@ class VOCDetection(_VOCBase): ...@@ -173,7 +173,7 @@ class VOCDetection(_VOCBase):
puts it in root directory. If dataset is already downloaded, it is not puts it in root directory. If dataset is already downloaded, it is not
downloaded again. downloaded again.
(default: alphabetic indexing of VOC's 20 classes). (default: alphabetic indexing of VOC's 20 classes).
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, required): A function/transform that takes in the target_transform (callable, required): 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