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
MMCV
Commits
0d562118
"vscode:/vscode.git/clone" did not exist on "3fc2b625891029bf6207186098e0450e85c0c638"
Unverified
Commit
0d562118
authored
Nov 25, 2020
by
Wang Xinjiang
Committed by
GitHub
Nov 25, 2020
Browse files
Fix rotated nms (#668)
parent
a9787648
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
mmcv/ops/nms.py
mmcv/ops/nms.py
+0
-2
No files found.
mmcv/ops/nms.py
View file @
0d562118
...
...
@@ -346,11 +346,9 @@ def nms_rotated(dets, scores, iou_threshold, labels=None):
iou_threshold
=
iou_threshold
,
multi_label
=
multi_label
)
keep_inds
=
order
.
masked_select
(
select
==
1
)
dets
=
dets
[
keep_inds
,
:]
else
:
keep_inds
=
ext_module
.
nms_rotated
(
dets_wl
,
scores
,
order
,
dets_sorted
,
iou_threshold
,
multi_label
)
dets
=
dets
[
keep_inds
,
:]
dets
=
torch
.
cat
((
dets
[
keep_inds
],
scores
[
keep_inds
].
reshape
(
-
1
,
1
)),
dim
=
1
)
return
dets
,
keep_inds
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