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
ed0d4689
Unverified
Commit
ed0d4689
authored
Apr 07, 2022
by
Philip Meier
Committed by
GitHub
Apr 07, 2022
Browse files
fix Flowers102 dataset labels (#5775)
parent
bc9924fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/datasets/flowers102.py
torchvision/datasets/flowers102.py
+1
-1
No files found.
torchvision/datasets/flowers102.py
View file @
ed0d4689
...
@@ -65,7 +65,7 @@ class Flowers102(VisionDataset):
...
@@ -65,7 +65,7 @@ class Flowers102(VisionDataset):
image_ids
=
set_ids
[
self
.
_splits_map
[
self
.
_split
]].
tolist
()
image_ids
=
set_ids
[
self
.
_splits_map
[
self
.
_split
]].
tolist
()
labels
=
loadmat
(
self
.
_base_folder
/
self
.
_file_dict
[
"label"
][
0
],
squeeze_me
=
True
)
labels
=
loadmat
(
self
.
_base_folder
/
self
.
_file_dict
[
"label"
][
0
],
squeeze_me
=
True
)
image_id_to_label
=
dict
(
enumerate
(
labels
[
"labels"
].
tolist
(),
1
))
image_id_to_label
=
dict
(
enumerate
(
(
labels
[
"labels"
]
-
1
)
.
tolist
(),
1
))
self
.
_labels
=
[]
self
.
_labels
=
[]
self
.
_image_files
=
[]
self
.
_image_files
=
[]
...
...
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