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
075ed638
Commit
075ed638
authored
Oct 18, 2013
by
Davis King
Browse files
Relaxed PSI vector consistency test to avoid false alarms.
parent
af34478b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/svm/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
#ifdef ENABLE_ASSERTS
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."
<<
"
\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
)
...
...
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