Skip to content

Latest commit

 

History

History
executable file
·
65 lines (49 loc) · 2.01 KB

README.md

File metadata and controls

executable file
·
65 lines (49 loc) · 2.01 KB

FLame2SMPLX

A tool to tranform the flame texture space into SMPL or SMPLX model 's head(or face).

This reposity contains:

Flame albedo ->smplx/smpl albedo head or face

head smplx

requirement data prepare

(test data addr)

python-env

opencv
tqdm
numpy

usage

import cv2
from utils.texture_match import flame_smplx_texture_combine

smplx_obj = "../data/smplx-addon.obj"
flame_obj = "../data/head_template.obj"
smplx_2_flame = "../data/SMPL-X__FLAME_vertex_ids.npy"
smplx_texture = "../data/smplx_texture_m_alb.png"
flame_texture = "../data/texures.png"

# only face (not head)
face_vertex_ids = "../data/face_vertex_ids.npy"



tex_output = flame_smplx_texture_combine(flame_obj,smplx_obj,flame_texture,smplx_texture,smplx_2_flame,face_vertex_ids) # if  no face_vertex_ids parameter, whole flame head texture will be processed.

cv2.imwrite('../data/output_texture.png',tex_output)

change log

  • first version: assign the flame texture into smplx texture space,need to optimize the affine transform to accelerate the process.

Reference

https://github.com/qzane/textured_smplx