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
ModelZoo
SOLOv2-pytorch
Commits
e60d34af
Commit
e60d34af
authored
Jan 21, 2020
by
Cao Yuhang
Committed by
Kai Chen
Jan 21, 2020
Browse files
Fix albu mask format bug (#1818)
parent
c67cf3c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
mmdet/datasets/pipelines/transforms.py
mmdet/datasets/pipelines/transforms.py
+2
-3
No files found.
mmdet/datasets/pipelines/transforms.py
View file @
e60d34af
...
@@ -833,9 +833,8 @@ class Albu(object):
...
@@ -833,9 +833,8 @@ class Albu(object):
results
[
label
]
=
np
.
array
(
results
[
label
]
=
np
.
array
(
[
results
[
label
][
i
]
for
i
in
results
[
'idx_mapper'
]])
[
results
[
label
][
i
]
for
i
in
results
[
'idx_mapper'
]])
if
'masks'
in
results
:
if
'masks'
in
results
:
results
[
'masks'
]
=
[
results
[
'masks'
]
=
np
.
array
(
results
[
'masks'
][
i
]
for
i
in
results
[
'idx_mapper'
]
[
results
[
'masks'
][
i
]
for
i
in
results
[
'idx_mapper'
]])
]
if
(
not
len
(
results
[
'idx_mapper'
])
if
(
not
len
(
results
[
'idx_mapper'
])
and
self
.
skip_img_without_anno
):
and
self
.
skip_img_without_anno
):
...
...
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