Skip to content

Dimension mismatch between rendered image and reference image during nerf training #464

Answered by Tom94
mniverthi asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mniverthi
Comment options

Answer selected by mniverthi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #457 on April 11, 2022 07:04.