Skip to content

Commit c76de96

Browse files
ngimelsoumith
authored andcommitted
Don't join path with root for the second time (#89)
1 parent 08c4177 commit c76de96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/datasets/folder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self, root, transform=None, target_transform=None,
6262

6363
def __getitem__(self, index):
6464
path, target = self.imgs[index]
65-
img = self.loader(os.path.join(self.root, path))
65+
img = self.loader(path)
6666
if self.transform is not None:
6767
img = self.transform(img)
6868
if self.target_transform is not None:

0 commit comments

Comments
 (0)