Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
08b1f59f
"src/vscode:/vscode.git/clone" did not exist on "5f463f9b5a157e98beeb817879f0ac182934ca42"
Commit
08b1f59f
authored
Jul 02, 2017
by
Jiren Jin
Committed by
Soumith Chintala
Jul 01, 2017
Browse files
Create `ImageFolder` with the same (sorted) order on different machines (#193)
parent
c1f88ef1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/datasets/folder.py
torchvision/datasets/folder.py
+1
-1
No files found.
torchvision/datasets/folder.py
View file @
08b1f59f
...
...
@@ -24,7 +24,7 @@ def find_classes(dir):
def
make_dataset
(
dir
,
class_to_idx
):
images
=
[]
dir
=
os
.
path
.
expanduser
(
dir
)
for
target
in
os
.
listdir
(
dir
):
for
target
in
sorted
(
os
.
listdir
(
dir
)
)
:
d
=
os
.
path
.
join
(
dir
,
target
)
if
not
os
.
path
.
isdir
(
d
):
continue
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment