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
4b4795f9
Commit
4b4795f9
authored
Nov 16, 2016
by
soumith
Browse files
bugfix for lsun
parent
17cebddd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
torchvision/datasets/lsun.py
torchvision/datasets/lsun.py
+2
-1
No files found.
torchvision/datasets/lsun.py
View file @
4b4795f9
...
@@ -115,7 +115,8 @@ class LSUN(data.Dataset):
...
@@ -115,7 +115,8 @@ class LSUN(data.Dataset):
if
self
.
target_transform
is
not
None
:
if
self
.
target_transform
is
not
None
:
target
=
self
.
target_transform
(
target
)
target
=
self
.
target_transform
(
target
)
return
db
[
index
],
target
img
,
_
=
db
[
index
]
return
img
,
target
def
__len__
(
self
):
def
__len__
(
self
):
return
self
.
length
return
self
.
length
...
...
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