Moving towards an optimized C++ version of CEN.

This commit is contained in:
Tadas Baltrusaitis
2017-06-19 16:35:11 -04:00
parent 44ce6beb8d
commit 596593cca3
20 changed files with 327 additions and 63 deletions

View File

@@ -204,6 +204,7 @@ FaceModelParameters::FaceModelParameters(vector<string> &arguments)
}
}
// Make sure model_location is valid
// First check working directory, then the executable's directory, then the config path set by the build process.
boost::filesystem::path config_path = boost::filesystem::path(CONFIG_DIR);
@@ -224,6 +225,12 @@ FaceModelParameters::FaceModelParameters(vector<string> &arguments)
{
std::cout << "Could not find the landmark detection model to load" << std::endl;
}
if (model_path.stem().string().compare("main_ceclm_general") == 0)
{
sigma = 1.5 * sigma;
reg_factor = 0.9 * reg_factor;
}
}
void FaceModelParameters::init()