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:
Jonáš Kulhánekandmachenmusik authored and GitHub committed 2023-05-22 08:58:08 -07:00
1 parent c86ae8a07f
commit 3bc160cc7d
6 files changed
+33 -6

No files matched your search

+3 -1
View File
@@ -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,