Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
8f3249a4
Commit
8f3249a4
authored
Aug 10, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
ae13ad80
af88b0d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
loss.h
dlib/dnn/loss.h
+3
-2
No files found.
dlib/dnn/loss.h
View file @
8f3249a4
...
...
@@ -793,7 +793,7 @@ namespace dlib
// So we didn't hit this truth box. Is that because there is
// another, different truth box, that overlaps it according to NMS?
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
;
rectangle
best_matching_truth_box
=
(
*
truth
)[
hittruth
.
second
];
if
(
options
.
overlaps_nms
(
best_matching_truth_box
,
(
*
truth
)[
i
]))
...
...
@@ -806,7 +806,8 @@ namespace dlib
g
[
idx
]
=
0
;
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
<<
"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