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
83263d85
"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "fefb3e77d1d5441f2cdcd2c89123c4aa3f574b09"
Commit
83263d85
authored
May 28, 2017
by
Zhou Le
Committed by
Soumith Chintala
May 28, 2017
Browse files
Fix LSUN IndexError (#177)
parent
cd8c0c3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/datasets/lsun.py
torchvision/datasets/lsun.py
+1
-1
No files found.
torchvision/datasets/lsun.py
View file @
83263d85
...
@@ -114,7 +114,7 @@ class LSUN(data.Dataset):
...
@@ -114,7 +114,7 @@ class LSUN(data.Dataset):
if
index
<
ind
:
if
index
<
ind
:
break
break
target
+=
1
target
+=
1
sub
+
=
ind
sub
=
ind
db
=
self
.
dbs
[
target
]
db
=
self
.
dbs
[
target
]
index
=
index
-
sub
index
=
index
-
sub
...
...
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