DECA icon indicating copy to clipboard operation
DECA copied to clipboard

Confused on Pytorch3dRasterizer code

Open sijeh opened this issue 3 years ago • 0 comments

Hello, @YadiraF ,Thanks for your great work! I'm a recruit at this direction and I'm reading this repo as learning material. I'm confused on the Pytorch3dRasterizer code(https://github.com/YadiraF/DECA/blob/master/decalib/utils/renderer.py#L163). In this line, from what I understand, the value range of idx is $[0,num_of_faces]$, while the index range of attributes at $dim=0$ is $[0, N \times num_of_faces]$ which means the $attributes[num_of_faces:N*num_of_faces]$ will not be gathered. Is there any wrong understanding on this code,looking forward to your reply. Best Regards.

sijeh avatar Mar 02 '22 03:03 sijeh