bmild / nerf

Code release for NeRF (Neural Radiance Fields)
http://tancik.com/nerf
MIT License
9.84k stars 1.37k forks source link

alpha not rectified #62

Closed qsobad closed 4 years ago

qsobad commented 4 years ago

I wonder why the alpha_out is not rectified by ReLU which is mentioned in Fig.7 alpha_out = dense(1, act=None)(outputs)

tancik commented 4 years ago

ReLU is applied to alpha, just in a different code location: https://github.com/bmild/nerf/blob/8edde335d2b18188769850b03c45515352d66b31/run_nerf.py#L110

qsobad commented 4 years ago

ahhh,,, ic. it's the same if i add the relu after the linear layer, right?

tancik commented 4 years ago

Yep, it's the same.

qsobad commented 4 years ago

thanks man!