patrikhuber / eos

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

Error loading the Morphable Model #111

Closed flyingzhao closed 7 years ago

flyingzhao commented 7 years ago

I load the model sfm_shape_1724.bin, but an error occurs. I also test with other model. Except sfm_shape_3448, the same error occurs with other three model. Can you give me some help?

default

patrikhuber commented 7 years ago

Most likely you are taking the wrong model versions with the wrong version of the software, so it's a version mismatch. Please make sure to not make a mistake and check the following:

A) Does it work with the default model of the same version of the code? (sfm_shape_3448.bin)

B) Check your eos version, what exact version (tag) you're using

C) Check which models you downloaded (pre-v0.12.0 or v0.12.0 and newer), make sure you're using the correct ones that match your eos version, and re-download the new ones if necessary. Please read the release notes of v0.12.0.

flyingzhao commented 7 years ago

My tag is v0.10.1. Code can work well with defalt model. My tag is v0.10.0.

You are right. I download pre-v0.12.0 model and it works well. Thank you very much!

flyingzhao commented 7 years ago

But somethong worse happened. You can see the image. I guess that it is because the wrong landmak mapping. Can you give me some help?

code like this

fit-model.exe -i data/1.jpg -o out/111 -m ../share/sfm_shape_16759.bin -b ../share/expression_blendshapes_16759.bin 

Finished fitting and wrote result mesh and isomap to files with basename "111".

Texture below:

111 isomap

patrikhuber commented 7 years ago

Great that you're using the correct models now and it works.

Regarding the 16k blendshapes, please read the file errata.txt in the model's download directory: http://www.cvssp.org/faceweb/3dmm/facemodels/shape/errata.txt.