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
22d25bed
Commit
22d25bed
authored
Mar 28, 2020
by
WXinlong
Browse files
fix matrix_nms
parent
17f46d9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmdet/core/post_processing/matrix_nms.py
mmdet/core/post_processing/matrix_nms.py
+1
-1
No files found.
mmdet/core/post_processing/matrix_nms.py
View file @
22d25bed
...
...
@@ -18,7 +18,7 @@ def matrix_nms(seg_masks, cate_labels, cate_scores, kernel='gaussian', sigma=2.0
n_samples
=
len
(
cate_labels
)
if
n_samples
==
0
:
return
[]
if
sum_masks
==
None
:
if
sum_masks
is
None
:
sum_masks
=
seg_masks
.
sum
((
1
,
2
)).
float
()
seg_masks
=
seg_masks
.
reshape
(
n_samples
,
-
1
).
float
()
# inter.
...
...
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