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:
parent
1a24f3e58c
commit
a13c10ba61
@ -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"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user