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
7b60f4db
".github/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "de54d864b271a5dde42aa650c828de18ea37580a"
Unverified
Commit
7b60f4db
authored
Apr 16, 2020
by
dwSun
Committed by
GitHub
Apr 16, 2020
Browse files
improve documentation of DatasetFolder and ImageFolder (#2112)
parent
1b9f2511
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchvision/datasets/folder.py
torchvision/datasets/folder.py
+2
-2
No files found.
torchvision/datasets/folder.py
View file @
7b60f4db
...
...
@@ -81,7 +81,7 @@ class DatasetFolder(VisionDataset):
both extensions and is_valid_file should not be passed.
Attributes:
classes (list): List of the class names.
classes (list): List of the class names
sorted alphabetically
.
class_to_idx (dict): Dict with items (class_name, class_index).
samples (list): List of (sample path, class_index) tuples
targets (list): The class_index value for each image in the dataset
...
...
@@ -193,7 +193,7 @@ class ImageFolder(DatasetFolder):
and check if the file is a valid file (used to check of corrupt files)
Attributes:
classes (list): List of the class names.
classes (list): List of the class names
sorted alphabetically
.
class_to_idx (dict): Dict with items (class_name, class_index).
imgs (list): List of (image path, class_index) tuples
"""
...
...
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