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
b6dc0d8e
Commit
b6dc0d8e
authored
Sep 10, 2017
by
Davis King
Browse files
merged
parents
bd26a5d0
308bfa38
Changes
1
Show 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 @
b6dc0d8e
...
@@ -757,7 +757,7 @@ namespace dlib
...
@@ -757,7 +757,7 @@ namespace dlib
if
(
image_rect_to_feat_coord
(
p
,
input_tensor
,
x
,
x
.
label
,
sub
,
k
))
if
(
image_rect_to_feat_coord
(
p
,
input_tensor
,
x
,
x
.
label
,
sub
,
k
))
{
{
// Ignore boxes that can't be detected by the CNN.
// Ignore boxes that can't be detected by the CNN.
loss
-=
1
;
loss
-=
options
.
loss_per_missed_target
;
continue
;
continue
;
}
}
const
size_t
idx
=
(
k
*
output_tensor
.
nr
()
+
p
.
y
())
*
output_tensor
.
nc
()
+
p
.
x
();
const
size_t
idx
=
(
k
*
output_tensor
.
nr
()
+
p
.
y
())
*
output_tensor
.
nc
()
+
p
.
x
();
...
@@ -769,7 +769,7 @@ namespace dlib
...
@@ -769,7 +769,7 @@ namespace dlib
else
else
{
{
// This box was ignored so shouldn't have been counted in the loss.
// This box was ignored so shouldn't have been counted in the loss.
loss
-=
1
;
loss
-=
options
.
loss_per_missed_target
;
truth_idxs
.
push_back
(
0
);
truth_idxs
.
push_back
(
0
);
}
}
}
}
...
...
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