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
c0a6cfe1
Commit
c0a6cfe1
authored
Feb 27, 2017
by
NC Cullen
Committed by
Soumith Chintala
Feb 27, 2017
Browse files
DS_Store fix in find_classes (#79)
parent
39a50de1
Changes
1
Show 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 @
c0a6cfe1
...
...
@@ -15,7 +15,7 @@ def is_image_file(filename):
def
find_classes
(
dir
):
classes
=
os
.
listdir
(
dir
)
classes
=
[
d
for
d
in
os
.
listdir
(
dir
)
if
os
.
path
.
isdir
(
os
.
path
.
join
(
dir
,
d
))]
classes
.
sort
()
class_to_idx
=
{
classes
[
i
]:
i
for
i
in
range
(
len
(
classes
))}
return
classes
,
class_to_idx
...
...
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