TimoBolkart / BFM_to_FLAME

Convert from Basel Face Model (BFM) to the FLAME head model
http://flame.is.tue.mpg.de
406 stars 50 forks source link

wrong reuslt #14

Closed lucasjinreal closed 2 years ago

lucasjinreal commented 2 years ago
image image

the example even not right...

TimoBolkart commented 2 years ago

That looks indeed wrong. Can you please share the input mesh with us and let us know, how you obtained that?

lucasjinreal commented 2 years ago

@TimoBolkart Hi, the first one the default obj file (although it looks like already weird). I removed the mesh lib using inside since it have a lot of dependencies and some of them are out-of-dated.

Anyway, I found the optimization takes about 10 min to get a wrong result, so I give it up, it can not fit a textured obj from bfm to flame right?

TimoBolkart commented 2 years ago

What is the default obj file? It looks weird because the rendering looks from the back at it I guess, so you see the face from the inside. Can you share just that one obj file with me?

lucasjinreal commented 2 years ago

https://github.com/TimoBolkart/BFM_to_FLAME/blob/main/data/134212_1.obj

TimoBolkart commented 2 years ago

Unfortunately, I cannot reproduce this error. What changes do you have in the code? Are you sure that the file is loaded properly and that vertices are not permuted after loading (Trimesh for instance by default permutes the vertices when loading a mesh)

Running mesh_convert.py for this file gives me following result 134212_1__FLAME_fit

And this is the input BFM file rendered with the same view 134212_1

lucasjinreal commented 2 years ago

@TimoBolkart thanks, the first weird pic is directly is via macOS preview application. It looks not quite normal.

TimoBolkart commented 2 years ago

You are looking from the back onto the face, just rotate it, then it will look ok.

TimoBolkart commented 2 years ago

Closed as there was no further response