NextFace icon indicating copy to clipboard operation
NextFace copied to clipboard

How to get uvParametrization.*.pickle

Open shuishiwojiade opened this issue 3 years ago • 1 comments
trafficstars

Thanks for your great works. I want to know the process of calculating uvParametrization.pickle, in order to replace BFM model to FLAME. Looking forward to your detailed answer.

shuishiwojiade avatar Sep 09 '22 03:09 shuishiwojiade

uvParametrization.pickle contains the barycentric coordinates used to generate the texture map from the per vertex color. Flame already have these barycentric coordinates which can be found here: https://github.com/TimoBolkart/BFM_to_FLAME/blob/main/col_to_tex.py these coordinates are saved here x_coords, y_coords

U get these coordinates from the npy file here: https://github.com/TimoBolkart/BFM_to_FLAME/tree/main/data

The structure of the cached_data file can be found here in the def cache_data() function in https://github.com/TimoBolkart/BFM_to_FLAME/blob/main/col_to_tex.py

I have started working on adding FLAME to NextFace, any help is appreciated :) please let me know if u need more help with this

abdallahdib avatar Sep 11 '22 11:09 abdallahdib