Skip to content

Commit

Permalink
Fix file loading order of N-MNIST samples
Browse files Browse the repository at this point in the history
  • Loading branch information
verilog-indeed committed Jul 9, 2024
1 parent d67aa25 commit df554e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tonic/datasets/nmnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def __init__(

file_path = os.path.join(self.location_on_system, self.folder_name)
for path, dirs, files in os.walk(file_path):
dirs.sort()
files.sort()
for file in files:
if file.endswith("bin"):
Expand Down

0 comments on commit df554e7

Please sign in to comment.