cleardusk/3DDFA_V2

Sim3dr vis problem

lucasjinreal opened this issue · 0 comments

Hi, I found Sim3DR rending on CPU is very fast. It just need 4ms to render, but Pytorch3D in CPU needs about 50ms....

So I transfer this tool to rending human mesh. but I found a problem, I simply render like this:

pred_mesh_list = pred_mesh_list[0]
vertices = pred_mesh_list['vertices'].T
# vertices[:, 0] = - vertices[:, 0]
res_img = render(img_original_bgr, [vertices], pred_mesh_list['faces'], alpha=0.8)

the result like this:

image

it seems the mesh were mirrored.

Now I want mirror it back. is there anyway to do it?