nerfstudio-project / nerfacc

A General NeRF Acceleration Toolbox in PyTorch.
https://www.nerfacc.com/
Other
1.38k stars 112 forks source link

Rendering a different number of color channels (not 3) #131

Closed lukemelas closed 1 year ago

lukemelas commented 1 year ago

Hi! Thanks for your great work in this repo.

I am trying to render a neural field in feature space, rather than RGB space. I'd love to use nerfacc because it looks fast, simple, and well-documented. However, as far as I can see, it only supports rendering 3-dimensional colors/features.

https://github.com/KAIR-BAIR/nerfacc/blob/eecfd44bed337b8f5d54da6649693c9f16fbaeb8/nerfacc/vol_rendering.py#L82-L84

Is it possible to render colors/features with a dimension other than 3? If not, would you consider supporting features of other sizes?

Thanks again for the great repo, Luke

lukemelas commented 1 year ago

Update: It seems my issue was premature. I've realized that the assertion statement to which I linked is actually the only thing preventing rendering with dimensions other than three. Removing these lines resolves my issue!

Thanks again for your work.

Closing this issue.