Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve documentation of DatasetFolder and ImageFolder #2112

Merged
merged 1 commit into from
Apr 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions torchvision/datasets/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
"""
Expand Down