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.74k stars 483 forks source link

All the values in viewdirs are zero in extract_mesh.ipynb #71

Closed SteveSZF closed 3 years ago

SteveSZF commented 3 years ago

Hi, thank you for your great work. I found that the values in viewdirs are not all zeros during training and testing. But all the values in viewdirs are zero in extract_mesh.ipynb. Could you explain it? Thank you!

kwea123 commented 3 years ago

this is because to extract mesh, we only need the occupancy (sigma) and not the rgb colors. Therefore any value of viewdir is fine (it doesn't change the result). Or you can even remove these lines by querying the sigma part only.