mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2025-02-16 17:32:31 +00:00
parent
a63d0bdd26
commit
fc7432d8b6
@ -69,7 +69,7 @@ def render(viewpoint_camera, pc : GaussianModel, pipe, bg_color : torch.Tensor,
|
|||||||
# from SHs in Python, do it. If not, then SH -> RGB conversion will be done by rasterizer.
|
# from SHs in Python, do it. If not, then SH -> RGB conversion will be done by rasterizer.
|
||||||
shs = None
|
shs = None
|
||||||
colors_precomp = None
|
colors_precomp = None
|
||||||
if colors_precomp is None:
|
if override_color is None:
|
||||||
if pipe.convert_SHs_python:
|
if pipe.convert_SHs_python:
|
||||||
shs_view = pc.get_features.transpose(1, 2).view(-1, 3, (pc.max_sh_degree+1)**2)
|
shs_view = pc.get_features.transpose(1, 2).view(-1, 3, (pc.max_sh_degree+1)**2)
|
||||||
dir_pp = (pc.get_xyz - viewpoint_camera.camera_center.repeat(pc.get_features.shape[0], 1))
|
dir_pp = (pc.get_xyz - viewpoint_camera.camera_center.repeat(pc.get_features.shape[0], 1))
|
||||||
|
Loading…
Reference in New Issue
Block a user