PeterouZh / CIPS-3D

3D-aware GANs based on NeRF (arXiv).
MIT License
610 stars 60 forks source link

How to set the near and far plane in NeRF network? #36

Open cwchenwang opened 2 years ago

cwchenwang commented 2 years ago

Thanks for your excellent work. I am curious why you set the ray_near and ray_end to 0.88 and 1.12? (and for other variables like h_stddev etc.) Is that set empirically?

PeterouZh commented 2 years ago

捕获

Because the FOV is set to 12 degrees, 0.88/1.12 is to ensure that X Y Z range from -0.1xx to 0.1xx. So we can easily scale XYZ coordinates to the range between -1 and 1.

h_stddev is set empirically according to datasets.