mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 23:08:44 +08:00
fix rgbs sigmas to be contiguous
This commit is contained in:
1 parent
c27dc26e03
commit
af176ddf32
1 file changed
+6
-1
@@ -100,7 +100,12 @@ class NGPGraph(Graph):
|
|||||||
accumulated_color,
|
accumulated_color,
|
||||||
alive_ray_mask,
|
alive_ray_mask,
|
||||||
) = nerfactory_cuda.VolumeRenderer.apply(
|
) = 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_depth = torch.clip(accumulated_depth, t_min[:, None], t_max[:, None])
|
||||||
accumulated_color = accumulated_color + colors.WHITE.to(accumulated_color) * (1.0 - accumulated_weight)
|
accumulated_color = accumulated_color + colors.WHITE.to(accumulated_color) * (1.0 - accumulated_weight)
|
||||||
|
|||||||
Reference in new issue
Block a user