kwea123 / nerf_pl

NeRF (Neural Radiance Fields) and NeRF in the Wild using pytorch-lightning
https://www.youtube.com/playlist?list=PLDV2CyUo4q-K02pNEyDr7DYpTQuka3mbV
MIT License
2.66k stars 470 forks source link

loss #213

Open mowangmodi opened 9 months ago

mowangmodi commented 9 months ago

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()