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
375c9717
Commit
375c9717
authored
Aug 22, 2017
by
Soumith Chintala
Browse files
fix inconsistency in stl10 unlabeled
parent
0613135a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/datasets/stl10.py
torchvision/datasets/stl10.py
+1
-1
No files found.
torchvision/datasets/stl10.py
View file @
375c9717
...
...
@@ -71,7 +71,7 @@ class STL10(CIFAR10):
elif
self
.
split
==
'unlabeled'
:
self
.
data
,
_
=
self
.
__loadfile
(
self
.
train_list
[
2
][
0
])
self
.
labels
=
None
self
.
labels
=
np
.
asarray
([
-
1
]
*
self
.
data
.
shape
[
0
])
else
:
# self.split == 'test':
self
.
data
,
self
.
labels
=
self
.
__loadfile
(
self
.
test_list
[
0
][
0
],
self
.
test_list
[
1
][
0
])
...
...
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