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
075ed638
Commit
075ed638
authored
Oct 19, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Relaxed PSI vector consistency test to avoid false alarms.
parent
af34478b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
structural_svm_object_detection_problem.h
dlib/svm/structural_svm_object_detection_problem.h
+1
-1
No files found.
dlib/svm/structural_svm_object_detection_problem.h
View file @
075ed638
...
@@ -411,7 +411,7 @@ namespace dlib
...
@@ -411,7 +411,7 @@ namespace dlib
#ifdef ENABLE_ASSERTS
#ifdef ENABLE_ASSERTS
const
double
psi_score
=
dot
(
psi
,
current_solution
);
const
double
psi_score
=
dot
(
psi
,
current_solution
);
DLIB_ASSERT
(
std
::
abs
(
psi_score
-
total_score
)
*
std
::
max
(
psi_score
,
total_score
)
<
1e-
8
,
DLIB_ASSERT
(
std
::
abs
(
psi_score
-
total_score
)
*
std
::
max
(
psi_score
,
total_score
)
<
1e-
5
,
"
\t
The get_feature_vector() and detect() methods of image_scanner_type are not in sync."
"
\t
The get_feature_vector() and detect() methods of image_scanner_type are not in sync."
<<
"
\n\t
The relative error is too large to be attributed to rounding error."
<<
"
\n\t
The relative error is too large to be attributed to rounding error."
<<
"
\n\t
relative error: "
<<
std
::
abs
(
psi_score
-
total_score
)
*
std
::
max
(
psi_score
,
total_score
)
<<
"
\n\t
relative error: "
<<
std
::
abs
(
psi_score
-
total_score
)
*
std
::
max
(
psi_score
,
total_score
)
...
...
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