daniilidis-group / neural_renderer

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

Rendering more than 3 channels #53

Closed ebartrum closed 5 years ago

ebartrum commented 5 years ago

Would it be possible to allow rendering more than 3 channels?

nkolot commented 5 years ago

It is possible to add direct support for that but I don't think it's necessary because there are workarounds for that. The easiest thing you can do is "batch" the operation and if the number of channels you want is not a multiple of 3, just add dummy values and ignore them later. I hope that helps.