Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
87f1521f
Unverified
Commit
87f1521f
authored
Jan 15, 2024
by
anthony-cabacungan
Committed by
GitHub
Jan 15, 2024
Browse files
Fixed typos (#8208)
parent
be519351
Changes
38
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
23 additions
and
23 deletions
+23
-23
torchvision/datasets/caltech.py
torchvision/datasets/caltech.py
+2
-2
torchvision/datasets/celeba.py
torchvision/datasets/celeba.py
+1
-1
torchvision/datasets/cifar.py
torchvision/datasets/cifar.py
+1
-1
torchvision/datasets/clevr.py
torchvision/datasets/clevr.py
+1
-1
torchvision/datasets/coco.py
torchvision/datasets/coco.py
+2
-2
torchvision/datasets/country211.py
torchvision/datasets/country211.py
+1
-1
torchvision/datasets/dtd.py
torchvision/datasets/dtd.py
+1
-1
torchvision/datasets/eurosat.py
torchvision/datasets/eurosat.py
+1
-1
torchvision/datasets/fakedata.py
torchvision/datasets/fakedata.py
+1
-1
torchvision/datasets/fer2013.py
torchvision/datasets/fer2013.py
+1
-1
torchvision/datasets/fgvc_aircraft.py
torchvision/datasets/fgvc_aircraft.py
+1
-1
torchvision/datasets/flowers102.py
torchvision/datasets/flowers102.py
+1
-1
torchvision/datasets/folder.py
torchvision/datasets/folder.py
+1
-1
torchvision/datasets/food101.py
torchvision/datasets/food101.py
+1
-1
torchvision/datasets/gtsrb.py
torchvision/datasets/gtsrb.py
+1
-1
torchvision/datasets/imagenet.py
torchvision/datasets/imagenet.py
+1
-1
torchvision/datasets/imagenette.py
torchvision/datasets/imagenette.py
+1
-1
torchvision/datasets/inaturalist.py
torchvision/datasets/inaturalist.py
+1
-1
torchvision/datasets/kinetics.py
torchvision/datasets/kinetics.py
+1
-1
torchvision/datasets/lfw.py
torchvision/datasets/lfw.py
+2
-2
No files found.
torchvision/datasets/caltech.py
View file @
87f1521f
...
@@ -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 a
n
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 a
n
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.
...
...
torchvision/datasets/celeba.py
View file @
87f1521f
...
@@ -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 a
n
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.
...
...
torchvision/datasets/cifar.py
View file @
87f1521f
...
@@ -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 a
n
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.
...
...
torchvision/datasets/clevr.py
View file @
87f1521f
...
@@ -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 a
n
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
...
...
torchvision/datasets/coco.py
View file @
87f1521f
...
@@ -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 a
n
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 a
n
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.
...
...
torchvision/datasets/country211.py
View file @
87f1521f
...
@@ -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 a
n
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
...
...
torchvision/datasets/dtd.py
View file @
87f1521f
torchvision/datasets/eurosat.py
View file @
87f1521f
...
@@ -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 a
n
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.
...
...
torchvision/datasets/fakedata.py
View file @
87f1521f
...
@@ -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 a
n
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.
...
...
torchvision/datasets/fer2013.py
View file @
87f1521f
...
@@ -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 a
n
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.
"""
"""
...
...
torchvision/datasets/fgvc_aircraft.py
View file @
87f1521f
...
@@ -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 a
n
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.
...
...
torchvision/datasets/flowers102.py
View file @
87f1521f
...
@@ -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 a
n
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
...
...
torchvision/datasets/folder.py
View file @
87f1521f
...
@@ -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 a
n
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.
...
...
torchvision/datasets/food101.py
View file @
87f1521f
...
@@ -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 a
n
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
...
...
torchvision/datasets/gtsrb.py
View file @
87f1521f
...
@@ -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 a
n
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
...
...
torchvision/datasets/imagenet.py
View file @
87f1521f
...
@@ -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 a
n
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.
...
...
torchvision/datasets/imagenette.py
View file @
87f1521f
...
@@ -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 a
n
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.
...
...
torchvision/datasets/inaturalist.py
View file @
87f1521f
...
@@ -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 a
n
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.
...
...
torchvision/datasets/kinetics.py
View file @
87f1521f
torchvision/datasets/lfw.py
View file @
87f1521f
...
@@ -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 a
n
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 a
n
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.
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment