Commit c76de96a authored by ngimel's avatar ngimel Committed by Soumith Chintala
Browse files

Don't join path with root for the second time (#89)

parent 08c41772
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment