Skip to content

Commit

Permalink
improve documentation of DatasetFolder and ImageFolder (#2112)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwSun committed Apr 16, 2020
1 parent 1b9f251 commit 7b60f4d
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 7b60f4d

Please sign in to comment.