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

How to transform the texture of BFM model into that of flame model? #22

Open yuchen814 opened 1 year ago

yuchen814 commented 1 year ago

Nice work! But I only successfully converted the mesh of BFM model. I don't understand how to change texture.I need to use col to tex.py? I'm not likely to use the output of that code. I would be very grateful if you could reply to me!!

TimoBolkart commented 1 year ago

What exactly do you intend to do? The col_to_tex.py takes the albedo space of BFM (represented as colors per vertex) and converts them to the FLAME texture layout. The result is a albedo texture space for FLAME with the same color variations than BFM. This space is for instance used in DECA.

yuchen814 commented 1 year ago

Thank you very much for your reply!!! I want to transform the textured BFM model into a textured Flame model.

yuchen814 commented 1 year ago

How can I generate a complete flame texture without color difference? The texture generated by Deca has significant differences between the facial edges and the head. Thank you again!

TimoBolkart commented 1 year ago

The converted texture space has no color difference in the face and it looks like this: image What color difference are you referring to here?

yuchen814 commented 1 year ago

I try to use DECA with FLAME_albedo_from_BFM.npz. The head texture I got is like this: image

yuchen814 commented 1 year ago

The converted texture space has no color difference in the face and it looks like this: image What color difference are you referring to here?

What code can I use to achieve this? I want to make it look like this!!!!!!!!!!!!!!!!!

TimoBolkart commented 1 year ago

That is the visualization of the col_to_tex.py script that produces the FLAME_albedo_from_BFM.npz. I am not sure why the DECA output has only the face colored.

yuchen814 commented 1 year ago

That is the visualization of the col_to_tex.py script that produces the FLAME_albedo_from_BFM.npz. I am not sure why the DECA output has only the face colored. Do you have a way to achieve the same effect as the pictures you sent? Thank you for your positive response.