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
c00c4d36
Unverified
Commit
c00c4d36
authored
Mar 17, 2021
by
Philip Meier
Committed by
GitHub
Mar 17, 2021
Browse files
fix VOC datasets for 2007 (#3572)
Co-authored-by:
Francisco Massa
<
fvsmassa@gmail.com
>
parent
00c460af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
torchvision/datasets/voc.py
torchvision/datasets/voc.py
+2
-3
No files found.
torchvision/datasets/voc.py
View file @
c00c4d36
...
...
@@ -87,10 +87,9 @@ class _VOCBase(VisionDataset):
valid_image_sets
=
[
"train"
,
"trainval"
,
"val"
]
if
year
==
"2007"
:
valid_image_sets
.
append
(
"test"
)
key
=
"2007-test"
else
:
key
=
year
self
.
image_set
=
verify_str_arg
(
image_set
,
"image_set"
,
valid_image_sets
)
key
=
"2007-test"
if
year
==
"2007"
and
image_set
==
"test"
else
year
dataset_year_dict
=
DATASET_YEAR_DICT
[
key
]
self
.
url
=
dataset_year_dict
[
"url"
]
...
...
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