mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-15 03:37:49 +00:00
Moving towards an optimized C++ version of CEN.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user