Skip to content

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

Notifications You must be signed in to change notification settings

CvHadesSun/FLame2SMPLX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages