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
8f3249a4
Commit
8f3249a4
authored
Aug 10, 2017
by
Davis King
Browse files
merged
parents
ae13ad80
af88b0d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
dlib/dnn/loss.h
dlib/dnn/loss.h
+3
-2
No files found.
dlib/dnn/loss.h
View file @
8f3249a4
...
@@ -793,7 +793,7 @@ namespace dlib
...
@@ -793,7 +793,7 @@ namespace dlib
// So we didn't hit this truth box. Is that because there is
// So we didn't hit this truth box. Is that because there is
// another, different truth box, that overlaps it according to NMS?
// another, different truth box, that overlaps it according to NMS?
const
std
::
pair
<
double
,
unsigned
int
>
hittruth
=
find_best_match
(
*
truth
,
(
*
truth
)[
i
],
i
);
const
std
::
pair
<
double
,
unsigned
int
>
hittruth
=
find_best_match
(
*
truth
,
(
*
truth
)[
i
],
i
);
if
(
hittruth
.
second
==
i
)
if
(
hittruth
.
second
==
i
||
(
*
truth
)[
hittruth
.
second
].
ignore
)
continue
;
continue
;
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
]))
...
@@ -806,7 +806,8 @@ namespace dlib
...
@@ -806,7 +806,8 @@ namespace dlib
g
[
idx
]
=
0
;
g
[
idx
]
=
0
;
std
::
cout
<<
"Warning, ignoring object. We encountered a truth rectangle located at "
<<
(
*
truth
)[
i
].
rect
;
std
::
cout
<<
"Warning, ignoring object. We encountered a truth rectangle located at "
<<
(
*
truth
)[
i
].
rect
;
std
::
cout
<<
" that is suppressed by non-max-suppression "
;
std
::
cout
<<
" that is suppressed by non-max-suppression "
;
std
::
cout
<<
"because it is overlapped by another truth rectangle located at "
<<
best_matching_truth_box
<<
"."
<<
std
::
endl
;
std
::
cout
<<
"because it is overlapped by another truth rectangle located at "
<<
best_matching_truth_box
<<
" (IoU:"
<<
box_intersection_over_union
(
best_matching_truth_box
,(
*
truth
)[
i
])
<<
")."
<<
std
::
endl
;
}
}
}
}
}
}
...
...
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