4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 18:44:21 +08:00

fix rgbs sigmas to be contiguous

This commit is contained in:
Ruilong Li 2022-07-27 22:50:11 +00:00
parent c27dc26e03
commit af176ddf32

View File

@ -100,7 +100,12 @@ class NGPGraph(Graph):
accumulated_color,
alive_ray_mask,
) = nerfactory_cuda.VolumeRenderer.apply(
packed_info, ray_samples.frustums.starts, ray_samples.frustums.ends, sigmas, rgbs, opacities
packed_info,
ray_samples.frustums.starts,
ray_samples.frustums.ends,
sigmas.contiguous(),
rgbs.contiguous(),
opacities,
)
accumulated_depth = torch.clip(accumulated_depth, t_min[:, None], t_max[:, None])
accumulated_color = accumulated_color + colors.WHITE.to(accumulated_color) * (1.0 - accumulated_weight)