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
ebbc9e89
Commit
ebbc9e89
authored
Sep 23, 2018
by
Davis King
Browse files
Fixed compiler warnings
parent
0ab5b70e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/dnn/loss.h
dlib/dnn/loss.h
+2
-2
No files found.
dlib/dnn/loss.h
View file @
ebbc9e89
...
@@ -1009,7 +1009,7 @@ namespace dlib
...
@@ -1009,7 +1009,7 @@ namespace dlib
double
detection_confidence_
,
double
detection_confidence_
,
size_t
tensor_offset_
,
size_t
tensor_offset_
,
long
channel
long
channel
)
:
rect
(
rect_
),
rect_bbr
(
rect_
),
detection_confidence
(
detection_confidence_
),
tensor_offset
(
tensor_offset_
),
tensor_channel
(
channel
)
{}
)
:
rect
(
rect_
),
detection_confidence
(
detection_confidence_
),
tensor_offset
(
tensor_offset_
),
tensor_channel
(
channel
)
,
rect_bbr
(
rect_
)
{}
// rect is the rectangle you get without any bounding box regression. So it's
// rect is the rectangle you get without any bounding box regression. So it's
// the basic sliding window box (aka, the "anchor box").
// the basic sliding window box (aka, the "anchor box").
...
@@ -1428,7 +1428,7 @@ namespace dlib
...
@@ -1428,7 +1428,7 @@ namespace dlib
const
float
*
out_data
=
output_tensor
.
host
()
+
output_tensor
.
k
()
*
output_tensor
.
nr
()
*
output_tensor
.
nc
()
*
i
;
const
float
*
out_data
=
output_tensor
.
host
()
+
output_tensor
.
k
()
*
output_tensor
.
nr
()
*
output_tensor
.
nc
()
*
i
;
// scan the final layer and output the positive scoring locations
// scan the final layer and output the positive scoring locations
dets_accum
.
clear
();
dets_accum
.
clear
();
for
(
long
k
=
0
;
k
<
options
.
detector_windows
.
size
();
++
k
)
for
(
long
k
=
0
;
k
<
(
long
)
options
.
detector_windows
.
size
();
++
k
)
{
{
for
(
long
r
=
0
;
r
<
output_tensor
.
nr
();
++
r
)
for
(
long
r
=
0
;
r
<
output_tensor
.
nr
();
++
r
)
{
{
...
...
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