We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ImageFolder
1 parent c1f88ef commit 08b1f59Copy full SHA for 08b1f59
torchvision/datasets/folder.py
@@ -24,7 +24,7 @@ def find_classes(dir):
24
def make_dataset(dir, class_to_idx):
25
images = []
26
dir = os.path.expanduser(dir)
27
- for target in os.listdir(dir):
+ for target in sorted(os.listdir(dir)):
28
d = os.path.join(dir, target)
29
if not os.path.isdir(d):
30
continue
0 commit comments