Can't find piece of code that normalizes predicted sdf to lie between -1 and 1
andrewsonga opened this issue · comments
Hello,
I'm trying to follow up on the discussion in issue #12 about how the predicted SDF is defined (i.e. whether it is defined in the metric space or the normalized space [-1, 1]). You mentioned that "predicted SDF is always normalized between -1 (behind the surface) and +1 (in front of the surface)". However, I couldn't find anywhere in the code where the SDF output from the NeRF MLP is explicitly constrained to fall within the range [-1, 1] (for e.g. via a tanh activation) - there does not seem to be any activation applied when computing alpha_out
in the function init_nerf_model
from
neural-rgbd-surface-reconstruction/nerf_helpers.py
Lines 106 to 116 in 44ccc8a
Could you please direct me to where exactly in the codebase the predicted SDF is normalized?
Thank you in advance!
There is no explicit normalization. The freespace and truncation losses push the predicted SDF towards the [-1, 1] range.