patrikhuber / eos

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

fit-model-ceres assert/crash when using with a model that doesn't have exactly 6 blendshapes #322

Open patrikhuber opened 4 years ago

patrikhuber commented 4 years ago

I should test fit-model-ceres with a model that doesn't have exactly 6 blendshapes (e.g. the 4DFM), as the example has the number 6 hard-coded. According to a report, this will hit an assert somewhere in sample_to_mesh with an Eigen multiplication matrix dimension mismatch.

It would be good if we could update the Ceres example so it at least works with other models without hitting any asserts/errors.