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
18 changed files
with
23 additions
and
23 deletions
+23
-23
torchvision/datasets/lsun.py
torchvision/datasets/lsun.py
+1
-1
torchvision/datasets/mnist.py
torchvision/datasets/mnist.py
+5
-5
torchvision/datasets/moving_mnist.py
torchvision/datasets/moving_mnist.py
+1
-1
torchvision/datasets/omniglot.py
torchvision/datasets/omniglot.py
+1
-1
torchvision/datasets/oxford_iiit_pet.py
torchvision/datasets/oxford_iiit_pet.py
+1
-1
torchvision/datasets/pcam.py
torchvision/datasets/pcam.py
+1
-1
torchvision/datasets/phototour.py
torchvision/datasets/phototour.py
+1
-1
torchvision/datasets/places365.py
torchvision/datasets/places365.py
+1
-1
torchvision/datasets/rendered_sst2.py
torchvision/datasets/rendered_sst2.py
+1
-1
torchvision/datasets/semeion.py
torchvision/datasets/semeion.py
+1
-1
torchvision/datasets/stanford_cars.py
torchvision/datasets/stanford_cars.py
+1
-1
torchvision/datasets/stl10.py
torchvision/datasets/stl10.py
+1
-1
torchvision/datasets/sun397.py
torchvision/datasets/sun397.py
+1
-1
torchvision/datasets/svhn.py
torchvision/datasets/svhn.py
+1
-1
torchvision/datasets/ucf101.py
torchvision/datasets/ucf101.py
+1
-1
torchvision/datasets/usps.py
torchvision/datasets/usps.py
+1
-1
torchvision/datasets/vision.py
torchvision/datasets/vision.py
+1
-1
torchvision/datasets/voc.py
torchvision/datasets/voc.py
+2
-2
No files found.
torchvision/datasets/lsun.py
View file @
87f1521f
...
@@ -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 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/mnist.py
View file @
87f1521f
...
@@ -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 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.
...
@@ -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 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.
...
@@ -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 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.
...
@@ -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 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.
...
@@ -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 a
n
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.
...
...
torchvision/datasets/moving_mnist.py
View file @
87f1521f
...
@@ -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 a
n
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
...
...
torchvision/datasets/omniglot.py
View file @
87f1521f
...
@@ -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 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/oxford_iiit_pet.py
View file @
87f1521f
torchvision/datasets/pcam.py
View file @
87f1521f
torchvision/datasets/phototour.py
View file @
87f1521f
...
@@ -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 a
n
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
...
...
torchvision/datasets/places365.py
View file @
87f1521f
...
@@ -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 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/rendered_sst2.py
View file @
87f1521f
...
@@ -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 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/semeion.py
View file @
87f1521f
...
@@ -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 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/stanford_cars.py
View file @
87f1521f
...
@@ -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 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/stl10.py
View file @
87f1521f
...
@@ -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 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/sun397.py
View file @
87f1521f
...
@@ -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 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/svhn.py
View file @
87f1521f
...
@@ -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 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/ucf101.py
View file @
87f1521f
torchvision/datasets/usps.py
View file @
87f1521f
...
@@ -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 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/vision.py
View file @
87f1521f
...
@@ -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 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/voc.py
View file @
87f1521f
...
@@ -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 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.
...
@@ -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 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, 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.
...
...
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