patrikhuber / eos

A lightweight 3D Morphable Face Model library in modern C++
Apache License 2.0
1.89k stars 596 forks source link

Tune fit-model-ceres's cost function weights #348

Open patrikhuber opened 1 year ago

patrikhuber commented 1 year ago

To find good weights, ceres::ResidualBlockId can be used to store the IDs to each added residual blocks. Then, one can use ceres::Problem::EvaluateOptions and ceres::Problem::Evaluate(...) to retrieve the values of each individual term. We don't do that in the example for simplicity reasons. But we should perhaps still provide adequate example weights.