cleardusk / 3DDFA_V2

The official PyTorch implementation of Towards Fast, Accurate and Stable 3D Dense Face Alignment, ECCV 2020.
MIT License
2.82k stars 505 forks source link

Sim3dr vis problem #123

Closed lucasjinreal closed 2 years ago

lucasjinreal commented 2 years ago

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?