-
In
This results in a dimension mismatch between the two arrays, which results in an error. I think this is due to line 169 in
Changing lines 269-270 in
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there, instant-ngp always operates on RGBA (since opacity is an inherent part of NeRF), and so always produces RGBA images. If you have a non-transparent background color specified, the rendered image's alpha channel will always be 1, though (because it got composited with the opaque background), and your solution is perfectly valid. To generalize the code to both RGB and RGBA datasets, |
Beta Was this translation helpful? Give feedback.
Hi there, instant-ngp always operates on RGBA (since opacity is an inherent part of NeRF), and so always produces RGBA images. If you have a non-transparent background color specified, the rendered image's alpha channel will always be 1, though (because it got composited with the opaque background), and your solution is perfectly valid.
To generalize the code to both RGB and RGBA datasets,
run.py
could be extended with functionality to detect RGB datasets and to automatically append an opaque alpha channel to the reference image in that case.