mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 21:39:06 +08:00
Backward compatibility for torch 1.x and fix for windows (#1962)
* backward compatibility for torch 1.x and fix for windows * Update pyproject.toml * Update README.md * Update README.md (As per request) --------- Co-authored-by: machenmusik <machenmusik@users.noreply.github.com>
This commit is contained in:
1 parent
c86ae8a07f
commit
3bc160cc7d
6 files changed
+33
-6
No files matched your search
@@ -25,6 +25,8 @@ from jaxtyping import Float
|
||||
from numpy.typing import NDArray
|
||||
from torch import Tensor
|
||||
|
||||
from nerfstudio.utils.misc import torch_compile
|
||||
|
||||
_EPS = np.finfo(float).eps * 4.0
|
||||
|
||||
|
||||
@@ -405,7 +407,7 @@ def _compute_residual_and_jacobian(
|
||||
return fx, fy, fx_x, fx_y, fy_x, fy_y
|
||||
|
||||
|
||||
@torch.compile(dynamic=True, mode="reduce-overhead", backend="eager")
|
||||
@torch_compile(dynamic=True, mode="reduce-overhead", backend="eager")
|
||||
def radial_and_tangential_undistort(
|
||||
coords: torch.Tensor,
|
||||
distortion_params: torch.Tensor,
|
||||
|
||||
Reference in new issue
Block a user