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
dlib
Commits
4b92804d
Commit
4b92804d
authored
Sep 01, 2020
by
Davis King
Browse files
Use the box with bounding box regression applied to do NMS in the loss.
parent
0e721e5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/dnn/loss.h
dlib/dnn/loss.h
+2
-2
No files found.
dlib/dnn/loss.h
View file @
4b92804d
...
@@ -1487,7 +1487,7 @@ namespace dlib
...
@@ -1487,7 +1487,7 @@ namespace dlib
// The point of this loop is to fill out the truth_score_hits array.
// The point of this loop is to fill out the truth_score_hits array.
for
(
size_t
i
=
0
;
i
<
dets
.
size
()
&&
final_dets
.
size
()
<
max_num_dets
;
++
i
)
for
(
size_t
i
=
0
;
i
<
dets
.
size
()
&&
final_dets
.
size
()
<
max_num_dets
;
++
i
)
{
{
if
(
overlaps_any_box_nms
(
final_dets
,
dets
[
i
].
rect
))
if
(
overlaps_any_box_nms
(
final_dets
,
dets
[
i
].
rect
_bbr
))
continue
;
continue
;
const
auto
&
det_label
=
options
.
detector_windows
[
dets
[
i
].
tensor_channel
].
label
;
const
auto
&
det_label
=
options
.
detector_windows
[
dets
[
i
].
tensor_channel
].
label
;
...
@@ -1556,7 +1556,7 @@ namespace dlib
...
@@ -1556,7 +1556,7 @@ namespace dlib
// detections.
// detections.
for
(
unsigned
long
i
=
0
;
i
<
dets
.
size
()
&&
final_dets
.
size
()
<
max_num_dets
;
++
i
)
for
(
unsigned
long
i
=
0
;
i
<
dets
.
size
()
&&
final_dets
.
size
()
<
max_num_dets
;
++
i
)
{
{
if
(
overlaps_any_box_nms
(
final_dets
,
dets
[
i
].
rect
))
if
(
overlaps_any_box_nms
(
final_dets
,
dets
[
i
].
rect
_bbr
))
continue
;
continue
;
const
auto
&
det_label
=
options
.
detector_windows
[
dets
[
i
].
tensor_channel
].
label
;
const
auto
&
det_label
=
options
.
detector_windows
[
dets
[
i
].
tensor_channel
].
label
;
...
...
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