From e8b77f0a3ed5ee6cb6b5be05f622cbab8785a451 Mon Sep 17 00:00:00 2001 From: Davis King Date: Fri, 15 Nov 2013 20:18:10 -0500 Subject: [PATCH] relaxed PSI consistency test again. --- 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 2b9070ed4..90c4b2b1b 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_CASSERT(std::abs(psi_score-total_score) <= 1e-6 * std::max(1.0,std::max(std::abs(psi_score),std::abs(total_score))), + DLIB_CASSERT(std::abs(psi_score-total_score) <= 1e-5 * std::max(1.0,std::max(std::abs(psi_score),std::abs(total_score))), "\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 error: " << std::abs(psi_score-total_score)