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
9d3e0864
Commit
9d3e0864
authored
Oct 15, 2019
by
Adrià Arrufat
Committed by
Davis E. King
Oct 15, 2019
Browse files
fix signed/unsigned warning (#1899)
parent
a41e0cdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dlib/dnn/loss.h
dlib/dnn/loss.h
+3
-3
No files found.
dlib/dnn/loss.h
View file @
9d3e0864
...
@@ -1140,7 +1140,7 @@ namespace dlib
...
@@ -1140,7 +1140,7 @@ namespace dlib
det_thresh_speed_adjust
=
std
::
max
(
det_thresh_speed_adjust
,
dets
[
max_num_initial_dets
].
detection_confidence
+
options
.
loss_per_false_alarm
);
det_thresh_speed_adjust
=
std
::
max
(
det_thresh_speed_adjust
,
dets
[
max_num_initial_dets
].
detection_confidence
+
options
.
loss_per_false_alarm
);
}
}
std
::
vector
<
size_
t
>
truth_idxs
;
std
::
vector
<
in
t
>
truth_idxs
;
truth_idxs
.
reserve
(
truth
->
size
());
truth_idxs
.
reserve
(
truth
->
size
());
std
::
unordered_map
<
size_t
,
rectangle
>
idx_to_truth_rect
;
std
::
unordered_map
<
size_t
,
rectangle
>
idx_to_truth_rect
;
...
@@ -1197,7 +1197,7 @@ namespace dlib
...
@@ -1197,7 +1197,7 @@ namespace dlib
std
::
vector
<
intermediate_detection
>
final_dets
;
std
::
vector
<
intermediate_detection
>
final_dets
;
// 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
(
unsigned
long
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
))
continue
;
continue
;
...
@@ -1241,7 +1241,7 @@ namespace dlib
...
@@ -1241,7 +1241,7 @@ namespace dlib
rectangle
best_matching_truth_box
=
(
*
truth
)[
hittruth
.
second
];
rectangle
best_matching_truth_box
=
(
*
truth
)[
hittruth
.
second
];
if
(
options
.
overlaps_nms
(
best_matching_truth_box
,
(
*
truth
)[
i
]))
if
(
options
.
overlaps_nms
(
best_matching_truth_box
,
(
*
truth
)[
i
]))
{
{
const
size_
t
idx
=
truth_idxs
[
i
];
const
in
t
idx
=
truth_idxs
[
i
];
if
(
idx
!=
-
1
)
if
(
idx
!=
-
1
)
{
{
// We are ignoring this box so we shouldn't have counted it in the
// We are ignoring this box so we shouldn't have counted it in the
...
...
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