TimoBolkart / BFM_to_FLAME

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

question about cvting SFM(BFM without ear&neck) to FLAME #30

Open lvZic opened 2 months ago

lvZic commented 2 months ago

I want to convert a SFM model to FLAME. I try to replace the value in BFM_to_FLAME_corr by BFM_front_idx (https://github.com/sicxu/Deep3DFaceRecon_pytorch/blob/master/BFM/BFM_front_idx.mat) which means the corresponding face vertexs between SFM and BFM. However, the resulting obj is weired and the modified BFM_to_FLAME_corr matrix has many zeors-rows, which is false in my opinion. I wonder how the BFM_to_FLAME_corr can be obtained for cvting SFM model to FLAME ?

TimoBolkart commented 1 month ago

Hi, can you please specify what exactly you did? Just zero-ed out the matrix entries for the vertices outside the mask? What is the dimensionality of your adapted correspondence matrix? Can you also please show some of the results that you get with this?

One alternative is to output the complete BFM mesh with the BFM parameters that e.g., Deep3DFaceRecon provides (rather than just outputting the cropped mesh) and converting this complete mesh to FLAME.

lvZic commented 1 month ago

Hi, can you please specify what exactly you did? Just zero-ed out the matrix entries for the vertices outside the mask? What is the dimensionality of your adapted correspondence matrix? Can you also please show some of the results that you get with this?

One alternative is to output the complete BFM mesh with the BFM parameters that e.g., Deep3DFaceRecon provides (rather than just outputting the cropped mesh) and converting this complete mesh to FLAME.

What i want to do is creaing a SFM_to_FLAME_corr matrix , similar to BFM_to_FLAME_corr matrix. As I have a SFM model and want to cvt it to FLAME. So I just modifyed the corresponding face vertexs in BFM_to_FLAME_corr matrix between SFM and BFM from /BFM_front_idx.mat). But the resulting SFM_to_FLAME_corrmatirx has many zeors-rows, which is weird in my opinion.