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.
1 parent 85bb16a commit 40fdf71Copy full SHA for 40fdf71
torchvision/datasets/folder.py
@@ -30,7 +30,7 @@ def make_dataset(dir, class_to_idx):
30
continue
31
32
for root, _, fnames in sorted(os.walk(d)):
33
- for fname in fnames:
+ for fname in sorted(fnames):
34
if is_image_file(fname):
35
path = os.path.join(root, fname)
36
item = (path, class_to_idx[target])
0 commit comments