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.71k stars 477 forks source link

Why we need to correct scale so that the nearest depth is at a little more than 1.0? #195

Open MMMazart opened 1 year ago

MMMazart commented 1 year ago

I don't understand why we need to correct scale so that the nearest depth is at a little more than 1.0。 ` near_original = self.bounds.min()

    scale_factor = near_original*0.75 # 0.75 is the default parameter# the nearest depth is at 1/0.75=1.33
    self.bounds /= scale_factor
    self.poses[..., 3] /= scale_factor`

Could you explain?thank you