patrikhuber / eos

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

run fit-model-multi, error occurred(assertion failed) #237

Closed anny0316 closed 5 years ago

anny0316 commented 5 years ago

Hi Huber, Thank you for the great library and making it available. When I run the fit-model-multi project , an error occurred. I only input one image, command line parameters like this: -i data/image_0010.png -l data/image_0010.pts. And options like this: modelfile: ../share/sfm_shape_3448.bin mappingsfile: ../share/ibug_to_sfm.txt contourfile: ../share/bfm2009_model_contours.json edgetopologyfile: ../share/sfm_3448_edge_topology.json blendshapesfile: ../share/expression_blendshapes_3448.bin image image I debugged the program. The error occurred in the contour_correspondence.hpp on 357 line. Other programs(fit-model-simple and fit-model) can run successfully. Would you please help me to find out where is the problem. Thank you!

patrikhuber commented 5 years ago

Hi,

contourfile: ../share/bfm2009_model_contours.json

It looks like you're passing the BFM2009 model contour file but are using the SFM. Use the model contour file from the SFM.

anny0316 commented 5 years ago

Hi, Thank you very much for your quick response.