Commit 4029092c authored by Davis King's avatar Davis King

Slightly tweaked some parameters to avoid accidentally triggering the "PSI

isn't being computed correctly" debugging check inside the structural SVM
solver.
parent fd6735d7
......@@ -207,7 +207,7 @@ namespace dlib
rsort_columns(u,w);
rsort_columns(v,w2);
double thresh = std::max(1e-3, max(w)*0.01);
double thresh = std::max(1e-4, max(w)*0.001);
w = round_zeros(w, thresh);
......
......@@ -418,7 +418,7 @@ namespace dlib
#ifdef ENABLE_ASSERTS
const double psi_score = dot(psi, current_solution);
DLIB_CASSERT(std::abs(psi_score-total_score) <= 1e-5 * std::max(1.0,std::max(std::abs(psi_score),std::abs(total_score))),
DLIB_CASSERT(std::abs(psi_score-total_score) <= 1e-4 * 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment