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
20a4a42d
You need to sign in or sign up before continuing.
Commit
20a4a42d
authored
Sep 02, 2019
by
Carrie
Committed by
Francisco Massa
Sep 02, 2019
Browse files
fixed typo (#1284)
* fixed typo * fixed some more typos and grammer
parent
7c9bbf5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
torchvision/datasets/folder.py
torchvision/datasets/folder.py
+3
-3
No files found.
torchvision/datasets/folder.py
View file @
20a4a42d
...
...
@@ -75,8 +75,8 @@ class DatasetFolder(VisionDataset):
E.g, ``transforms.RandomCrop`` for images.
target_transform (callable, optional): A function/transform that takes
in the target and transforms it.
is_valid_file (callable, optional): A function that takes path of a
n Image
file
and check if the file is a valid
_
file (used to check of corrupt files)
is_valid_file (callable, optional): A function that takes path of a file
and check if the file is a valid
file (used to check of corrupt files)
both extensions and is_valid_file should not be passed.
Attributes:
...
...
@@ -193,7 +193,7 @@ class ImageFolder(DatasetFolder):
target and transforms it.
loader (callable, optional): A function to load an image given its path.
is_valid_file (callable, optional): A function that takes path of an Image file
and check if the file is a valid
_
file (used to check of corrupt files)
and check if the file is a valid
file (used to check of corrupt files)
Attributes:
classes (list): List of the class names.
...
...
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