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
8b21c89e
Commit
8b21c89e
authored
Aug 05, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved how the relaxed mmod overlap settings are determined.
parent
ed683785
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
loss.h
dlib/dnn/loss.h
+11
-3
No files found.
dlib/dnn/loss.h
View file @
8b21c89e
...
@@ -466,15 +466,23 @@ namespace dlib
...
@@ -466,15 +466,23 @@ namespace dlib
// some small variability in how boxes get positioned between the training data
// some small variability in how boxes get positioned between the training data
// and the coordinate system used by the detector when it runs. So relaxing it
// and the coordinate system used by the detector when it runs. So relaxing it
// here takes care of that.
// here takes care of that.
const
double
relax_amount
=
0
.
05
;
auto
iou_thresh
=
advance_toward_1
(
overlaps_nms
.
get_iou_thresh
());
auto
iou_thresh
=
std
::
min
(
1
.
0
,
overlaps_nms
.
get_iou_thresh
()
+
relax_amount
);
auto
percent_covered_thresh
=
advance_toward_1
(
overlaps_nms
.
get_percent_covered_thresh
());
auto
percent_covered_thresh
=
std
::
min
(
1
.
0
,
overlaps_nms
.
get_percent_covered_thresh
()
+
relax_amount
);
overlaps_nms
=
test_box_overlap
(
iou_thresh
,
percent_covered_thresh
);
overlaps_nms
=
test_box_overlap
(
iou_thresh
,
percent_covered_thresh
);
}
}
private
:
private
:
static
double
advance_toward_1
(
double
val
)
{
if
(
val
<
1
)
val
+=
(
1
-
val
)
*
0
.
1
;
return
val
;
}
static
size_t
count_overlaps
(
static
size_t
count_overlaps
(
const
std
::
vector
<
rectangle
>&
rects
,
const
std
::
vector
<
rectangle
>&
rects
,
const
test_box_overlap
&
overlaps
,
const
test_box_overlap
&
overlaps
,
...
...
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