kwea123 / nerf_pl

NeRF (Neural Radiance Fields) and NeRF in the Wild using pytorch-lightning

Home Page:https://www.youtube.com/playlist?list=PLDV2CyUo4q-K02pNEyDr7DYpTQuka3mbV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

loss

mowangmodi opened this issue · comments

Why does the calculation of loss need to be multiplied by a coefficient of 0.5? Is it because fine and coat account for half respectively?
ret['c_l'] = 0.5 * ((inputs['rgb_coarse']-targets)**2).mean()
ret['f_l'] = 0.5 * ((inputs['rgb_coarse']-targets)**2).mean()