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
a7d1dc47
Commit
a7d1dc47
authored
Aug 03, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filled out the options for loss_mmod's operator<<.
parent
562d1b75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
loss.h
dlib/dnn/loss.h
+19
-3
No files found.
dlib/dnn/loss.h
View file @
a7d1dc47
...
...
@@ -881,10 +881,26 @@ namespace dlib
deserialize
(
item
.
options
,
in
);
}
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
loss_mmod_
&
)
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
loss_mmod_
&
item
)
{
// TODO, add options fields
out
<<
"loss_mmod"
;
out
<<
"loss_mmod
\t
("
;
out
<<
"detector_windows:("
;
auto
&
opts
=
item
.
options
;
for
(
size_t
i
=
0
;
i
<
opts
.
detector_windows
.
size
();
++
i
)
{
out
<<
opts
.
detector_windows
[
i
].
width
<<
"x"
<<
opts
.
detector_windows
[
i
].
height
;
if
(
i
+
1
<
opts
.
detector_windows
.
size
())
out
<<
","
;
}
out
<<
")"
;
out
<<
", loss per FA:"
<<
opts
.
loss_per_false_alarm
;
out
<<
", loss per miss:"
<<
opts
.
loss_per_missed_target
;
out
<<
", truth match IOU thresh:"
<<
opts
.
truth_match_iou_threshold
;
out
<<
", overlaps_nms:("
<<
opts
.
overlaps_nms
.
get_iou_thresh
()
<<
","
<<
opts
.
overlaps_nms
.
get_percent_covered_thresh
()
<<
")"
;
out
<<
", overlaps_ignore:("
<<
opts
.
overlaps_ignore
.
get_iou_thresh
()
<<
","
<<
opts
.
overlaps_ignore
.
get_percent_covered_thresh
()
<<
")"
;
out
<<
")"
;
return
out
;
}
...
...
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