Skip to content

Commit b99ff4a

Browse files
Fixed typos
1 parent be51935 commit b99ff4a

39 files changed

+47
-47
lines changed

torchvision/datasets/caltech.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Caltech101(VisionDataset):
2323
target types. ``category`` represents the target class, and
2424
``annotation`` is a list of points from a hand-generated outline.
2525
Defaults to ``category``.
26-
transform (callable, optional): A function/transform that takes in an PIL image
26+
transform (callable, optional): A function/transform that takes in a PIL image
2727
and returns a transformed version. E.g, ``transforms.RandomCrop``
2828
target_transform (callable, optional): A function/transform that takes in the
2929
target and transforms it.
@@ -151,7 +151,7 @@ class Caltech256(VisionDataset):
151151
Args:
152152
root (string): Root directory of dataset where directory
153153
``caltech256`` exists or will be saved to if download is set to True.
154-
transform (callable, optional): A function/transform that takes in an PIL image
154+
transform (callable, optional): A function/transform that takes in a PIL image
155155
and returns a transformed version. E.g, ``transforms.RandomCrop``
156156
target_transform (callable, optional): A function/transform that takes in the
157157
target and transforms it.

torchvision/datasets/celeba.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CelebA(VisionDataset):
3131
3232
Defaults to ``attr``. If empty, ``None`` will be returned as target.
3333
34-
transform (callable, optional): A function/transform that takes in an PIL image
34+
transform (callable, optional): A function/transform that takes in a PIL image
3535
and returns a transformed version. E.g, ``transforms.PILToTensor``
3636
target_transform (callable, optional): A function/transform that takes in the
3737
target and transforms it.

torchvision/datasets/cifar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CIFAR10(VisionDataset):
1717
``cifar-10-batches-py`` exists or will be saved to if download is set to True.
1818
train (bool, optional): If True, creates dataset from training set, otherwise
1919
creates from test set.
20-
transform (callable, optional): A function/transform that takes in an PIL image
20+
transform (callable, optional): A function/transform that takes in a PIL image
2121
and returns a transformed version. E.g, ``transforms.RandomCrop``
2222
target_transform (callable, optional): A function/transform that takes in the
2323
target and transforms it.

torchvision/datasets/clevr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CLEVRClassification(VisionDataset):
1818
root (string): Root directory of dataset where directory ``root/clevr`` exists or will be saved to if download is
1919
set to True.
2020
split (string, optional): The dataset split, supports ``"train"`` (default), ``"val"``, or ``"test"``.
21-
transform (callable, optional): A function/transform that takes in an PIL image and returns a transformed
21+
transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
2222
version. E.g, ``transforms.RandomCrop``
2323
target_transform (callable, optional): A function/transform that takes in them target and transforms it.
2424
download (bool, optional): If true, downloads the dataset from the internet and puts it in root directory. If

torchvision/datasets/coco.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CocoDetection(VisionDataset):
1414
Args:
1515
root (string): Root directory where images are downloaded to.
1616
annFile (string): Path to json annotation file.
17-
transform (callable, optional): A function/transform that takes in an PIL image
17+
transform (callable, optional): A function/transform that takes in a PIL image
1818
and returns a transformed version. E.g, ``transforms.PILToTensor``
1919
target_transform (callable, optional): A function/transform that takes in the
2020
target and transforms it.
@@ -65,7 +65,7 @@ class CocoCaptions(CocoDetection):
6565
Args:
6666
root (string): Root directory where images are downloaded to.
6767
annFile (string): Path to json annotation file.
68-
transform (callable, optional): A function/transform that takes in an PIL image
68+
transform (callable, optional): A function/transform that takes in a PIL image
6969
and returns a transformed version. E.g, ``transforms.PILToTensor``
7070
target_transform (callable, optional): A function/transform that takes in the
7171
target and transforms it.

torchvision/datasets/country211.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Country211(ImageFolder):
1616
Args:
1717
root (string): Root directory of the dataset.
1818
split (string, optional): The dataset split, supports ``"train"`` (default), ``"valid"`` and ``"test"``.
19-
transform (callable, optional): A function/transform that takes in an PIL image and returns a transformed
19+
transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
2020
version. E.g, ``transforms.RandomCrop``.
2121
target_transform (callable, optional): A function/transform that takes in the target and transforms it.
2222
download (bool, optional): If True, downloads the dataset from the internet and puts it into

torchvision/datasets/dtd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class DTD(VisionDataset):
2121
The partition only changes which split each image belongs to. Thus, regardless of the selected
2222
partition, combining all splits will result in all images.
2323
24-
transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
24+
transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
2525
version. E.g, ``transforms.RandomCrop``.
2626
target_transform (callable, optional): A function/transform that takes in the target and transforms it.
2727
download (bool, optional): If True, downloads the dataset from the internet and

torchvision/datasets/eurosat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class EuroSAT(ImageFolder):
1010
1111
Args:
1212
root (string): Root directory of dataset where ``root/eurosat`` exists.
13-
transform (callable, optional): A function/transform that takes in an PIL image
13+
transform (callable, optional): A function/transform that takes in a PIL image
1414
and returns a transformed version. E.g, ``transforms.RandomCrop``
1515
target_transform (callable, optional): A function/transform that takes in the
1616
target and transforms it.

torchvision/datasets/fakedata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class FakeData(VisionDataset):
1313
size (int, optional): Size of the dataset. Default: 1000 images
1414
image_size(tuple, optional): Size if the returned images. Default: (3, 224, 224)
1515
num_classes(int, optional): Number of classes in the dataset. Default: 10
16-
transform (callable, optional): A function/transform that takes in an PIL image
16+
transform (callable, optional): A function/transform that takes in a PIL image
1717
and returns a transformed version. E.g, ``transforms.RandomCrop``
1818
target_transform (callable, optional): A function/transform that takes in the
1919
target and transforms it.

torchvision/datasets/fer2013.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class FER2013(VisionDataset):
1717
root (string): Root directory of dataset where directory
1818
``root/fer2013`` exists.
1919
split (string, optional): The dataset split, supports ``"train"`` (default), or ``"test"``.
20-
transform (callable, optional): A function/transform that takes in an PIL image and returns a transformed
20+
transform (callable, optional): A function/transform that takes in a PIL image and returns a transformed
2121
version. E.g, ``transforms.RandomCrop``
2222
target_transform (callable, optional): A function/transform that takes in the target and transforms it.
2323
"""

0 commit comments

Comments
 (0)