From 36187d5224f06b7a8277914c15018149e96c58a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruilong=20Li=28=E6=9D=8E=E7=91=9E=E9=BE=99=29?= Date: Sat, 8 Jun 2024 15:18:15 -0700 Subject: [PATCH] torch.compile -> torch_compile from misc (#3202) Co-authored-by: Ruilong Li <397653553@qq.com> --- nerfstudio/models/splatfacto.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nerfstudio/models/splatfacto.py b/nerfstudio/models/splatfacto.py index a88a306ce..66113fc7e 100644 --- a/nerfstudio/models/splatfacto.py +++ b/nerfstudio/models/splatfacto.py @@ -46,6 +46,7 @@ from nerfstudio.engine.optimizers import Optimizers from nerfstudio.model_components import renderers from nerfstudio.models.base_model import Model, ModelConfig from nerfstudio.utils.colors import get_color +from nerfstudio.utils.misc import torch_compile from nerfstudio.utils.rich_utils import CONSOLE @@ -99,7 +100,7 @@ def resize_image(image: torch.Tensor, d: int): return tf.conv2d(image.permute(2, 0, 1)[:, None, ...], weight, stride=d).squeeze(1).permute(1, 2, 0) -@torch.compile() +@torch_compile() def get_viewmat(optimized_camera_to_world): """ function that converts c2w to gsplat world2camera matrix, using compile for some speed