SuLvXiangXin / zipnerf-pytorch

Unofficial implementation of ZipNeRF
Apache License 2.0
783 stars 85 forks source link

Update coord.py #91

Open ckLibra opened 9 months ago

ckLibra commented 9 months ago

the contraction function in current version may cause numerical instability in torch.pow(2x_mag_sqrt - 1, 1/3), when 2x_mag_sqrt - 1 < 0. According to the original paper (Eq. 14 in ZipNeRF), I revise it to ensure 2*x_mag_sqrt - 1 >= 1.