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
1b9304c0
Commit
1b9304c0
authored
Mar 22, 2017
by
soumith
Browse files
lsun test classes fix
parent
d8cb7f0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
torchvision/datasets/lsun.py
torchvision/datasets/lsun.py
+4
-1
No files found.
torchvision/datasets/lsun.py
View file @
1b9304c0
...
@@ -70,7 +70,10 @@ class LSUN(data.Dataset):
...
@@ -70,7 +70,10 @@ class LSUN(data.Dataset):
dset_opts
=
[
'train'
,
'val'
,
'test'
]
dset_opts
=
[
'train'
,
'val'
,
'test'
]
self
.
db_path
=
db_path
self
.
db_path
=
db_path
if
type
(
classes
)
==
str
and
classes
in
dset_opts
:
if
type
(
classes
)
==
str
and
classes
in
dset_opts
:
classes
=
[
c
+
'_'
+
classes
for
c
in
categories
]
if
classes
==
'test'
:
classes
=
[
classes
]
else
:
classes
=
[
c
+
'_'
+
classes
for
c
in
categories
]
if
type
(
classes
)
==
list
:
if
type
(
classes
)
==
list
:
for
c
in
classes
:
for
c
in
classes
:
c_short
=
c
.
split
(
'_'
)
c_short
=
c
.
split
(
'_'
)
...
...
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