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
a7d1dc47
Commit
a7d1dc47
authored
Aug 03, 2017
by
Davis King
Browse files
Filled out the options for loss_mmod's operator<<.
parent
562d1b75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
dlib/dnn/loss.h
dlib/dnn/loss.h
+19
-3
No files found.
dlib/dnn/loss.h
View file @
a7d1dc47
...
@@ -881,10 +881,26 @@ namespace dlib
...
@@ -881,10 +881,26 @@ namespace dlib
deserialize
(
item
.
options
,
in
);
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
\t
("
;
out
<<
"loss_mmod"
;
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
;
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