4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00

Use tan instead of tanh (#913)

This commit is contained in:
Matthew Tancik 2022-11-06 12:42:30 -08:00 committed by GitHub
parent 1a24f3e58c
commit a13c10ba61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ class InstantNGP(DataParser):
fl_x, fl_y = 0, 0
def fov_to_focal_length(rad, res):
return 0.5 * res / np.tanh(0.5 * rad)
return 0.5 * res / np.tan(0.5 * rad)
if "fl_x" in meta:
fl_x = meta["fl_x"]