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
308bfa38
Commit
308bfa38
authored
Sep 10, 2017
by
Juha Reunanen
Committed by
Davis E. King
Sep 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MMOD: fix loss from ignored rects when using loss_per_missed_target != 1 (#813)
parent
ef57efc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
loss.h
dlib/dnn/loss.h
+2
-2
No files found.
dlib/dnn/loss.h
View file @
308bfa38
...
...
@@ -757,7 +757,7 @@ namespace dlib
if
(
image_rect_to_feat_coord
(
p
,
input_tensor
,
x
,
x
.
label
,
sub
,
k
))
{
// Ignore boxes that can't be detected by the CNN.
loss
-=
1
;
loss
-=
options
.
loss_per_missed_target
;
continue
;
}
const
size_t
idx
=
(
k
*
output_tensor
.
nr
()
+
p
.
y
())
*
output_tensor
.
nc
()
+
p
.
x
();
...
...
@@ -769,7 +769,7 @@ namespace dlib
else
{
// 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
);
}
}
...
...
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