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
c76de96a
Commit
c76de96a
authored
Mar 10, 2017
by
ngimel
Committed by
Soumith Chintala
Mar 10, 2017
Browse files
Don't join path with root for the second time (#89)
parent
08c41772
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 @
c76de96a
...
...
@@ -62,7 +62,7 @@ class ImageFolder(data.Dataset):
def
__getitem__
(
self
,
index
):
path
,
target
=
self
.
imgs
[
index
]
img
=
self
.
loader
(
os
.
path
.
join
(
self
.
root
,
path
)
)
img
=
self
.
loader
(
path
)
if
self
.
transform
is
not
None
:
img
=
self
.
transform
(
img
)
if
self
.
target_transform
is
not
None
:
...
...
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