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
80ae224f
Unverified
Commit
80ae224f
authored
Jan 31, 2020
by
Cao Yuhang
Committed by
GitHub
Jan 31, 2020
Browse files
Fix fovea no ann (#2032)
parent
aade6801
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mmdet/datasets/pipelines/transforms.py
mmdet/datasets/pipelines/transforms.py
+2
-0
No files found.
mmdet/datasets/pipelines/transforms.py
View file @
80ae224f
...
...
@@ -838,6 +838,7 @@ class Albu(object):
if
isinstance
(
results
[
'bboxes'
],
list
):
results
[
'bboxes'
]
=
np
.
array
(
results
[
'bboxes'
],
dtype
=
np
.
float32
)
results
[
'bboxes'
]
=
results
[
'bboxes'
].
reshape
(
-
1
,
4
)
# filter label_fields
if
self
.
filter_lost_elements
:
...
...
@@ -858,6 +859,7 @@ class Albu(object):
if
'gt_labels'
in
results
:
if
isinstance
(
results
[
'gt_labels'
],
list
):
results
[
'gt_labels'
]
=
np
.
array
(
results
[
'gt_labels'
])
results
[
'gt_labels'
]
=
results
[
'gt_labels'
].
astype
(
np
.
int64
)
# back to the original format
results
=
self
.
mapper
(
results
,
self
.
keymap_back
)
...
...
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