From ff8191f38ec88457959d06103c2a40cc46764368 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 17 Aug 2013 17:09:41 -0400 Subject: [PATCH] Slightly relaxed the tolerance on the test that the user supplied feature extraction is correctly programmed to avoid false alarms. --- dlib/svm/structural_svm_object_detection_problem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/svm/structural_svm_object_detection_problem.h b/dlib/svm/structural_svm_object_detection_problem.h index eb95db087..0ae388c12 100644 --- a/dlib/svm/structural_svm_object_detection_problem.h +++ b/dlib/svm/structural_svm_object_detection_problem.h @@ -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-10, + DLIB_ASSERT(std::abs(psi_score-total_score)*std::max(psi_score,total_score) < 1e-8, "\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)