daniilidis-group / neural_renderer

A PyTorch port of the Neural 3D Mesh Renderer
Other
1.12k stars 248 forks source link

Getting the texture memory barycentric coordinates #72

Open ssram50 opened 4 years ago

ssram50 commented 4 years ago

Hi Is there a way to get the texture memory (tensor), barycentric coordinates

Let us say with have a texture memory of size:

texture.shape = [1,1000,4,4,4,3] batch = 1 num of faces = 1000 texure_size = 4 RGB = 3

What would be the easiest to get the barycentric coordinates, for the 4x4x4?