daniilidis-group / neural_renderer

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

Obtaining silhouettes of multiple objects #118

Open hwjiang1510 opened 2 years ago

hwjiang1510 commented 2 years ago

Thanks for the great work!

If I have multiple objects, how can I get their silhouettes with different indexes rather than using the same index for all of them?

I guess a hacking method is to apply textures with different colors, e.g. red for object 1, green for object 2, blue for object 3, and get the silhouettes by using argmax on the rendered image. But this method only works when the number of objects is smaller than 3.

Thanks!