Use tan instead of tanh (#913)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-11-06 12:42:30 -08:00
1 parent 1a24f3e58c
commit a13c10ba61
1 file changed
+1 -1
@@ -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"]