mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 22:56:03 +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
@@ -24,6 +24,7 @@ from torch import Tensor, nn
|
||||
|
||||
from nerfstudio.cameras.rays import RayBundle
|
||||
from nerfstudio.data.scene_box import SceneBox
|
||||
from nerfstudio.utils.misc import torch_compile
|
||||
|
||||
|
||||
class SceneCollider(nn.Module):
|
||||
@@ -108,7 +109,7 @@ class AABBBoxCollider(SceneCollider):
|
||||
return ray_bundle
|
||||
|
||||
|
||||
@torch.compile(dynamic=True, mode="reduce-overhead")
|
||||
@torch_compile(dynamic=True, mode="reduce-overhead")
|
||||
def _intersect_with_sphere(
|
||||
rays_o: torch.Tensor, rays_d: torch.Tensor, center: torch.Tensor, radius: float = 1.0, near_plane: float = 0.0
|
||||
):
|
||||
|
||||
Reference in new issue
Block a user