INNER CODE UNIT · Python

output_FLAME_meshes

TimoBolkart/voca · compute_FLAME_params.py:90

def output_FLAME_meshes(flame_model_fname, params_fname, out_path):
    '''
    Reconstruct meshes given a sequence of FLAME paramters
    :param flame_model_fname:   path of the FLAME model
    :param params_fname         path of the FLAME paramters file
    :param out_path:            output path of the FLAME meshes
    '''    
    
    if not os.path.exists(out_path):
        os.makedirs(out_path)

    model = load_model(flame_model_fname)
    params = np.load(params_fname, allow_pickle=True).item()

    shape = params['shape']
    pose = params['pose']
    exp = params['expression']

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…