georgeretsi / smirk

Official Pytorch Implementation of SMIRK: 3D Facial Expressions through Analysis-by-Neural-Synthesis (CVPR 2024)
https://georgeretsi.github.io/smirk/
MIT License
160 stars 14 forks source link

Why take negative for transformed_vertices #5

Closed a-thousand-suns closed 4 months ago

a-thousand-suns commented 5 months ago

Hello!

Amazing work!

Why take negative for transformed_vertices:transformed_vertices[:, :, 1:] = -transformed_vertices[:, :, 1:]

https://github.com/georgeretsi/smirk/blob/b7c08bd6dc263c731c129b34e476c1f0814fcdbe/src/renderer/renderer.py#L102

filby89 commented 5 months ago

Hey, thanks for liking SMIRK ! The flipping in these axes is needed before rendering the model so that it is in proper format for pytorch3d.