bump nerfacc to 0.2.0. bug fix for depth vis. (#744)

* bump nerfacc to 0.2.0. bug fix for depth vis.

* skip emtpy region for nerfacc raymarching
This commit is contained in:
Ruilong Li(李瑞龙) authored and GitHub committed 2022-10-09 19:16:30 -07:00
1 parent eeda90e697
commit e94b093b57
4 files changed
+6 -3

No files matched your search

+2 -1
View File
@@ -467,6 +467,7 @@ class VolumetricSampler(Sampler):
far_plane=far_plane,
stratified=self.training,
cone_angle=cone_angle,
alpha_thre=1e-2,
)
num_samples = starts.shape[0]
@@ -477,7 +478,7 @@ class VolumetricSampler(Sampler):
starts = torch.ones((1, 1), dtype=starts.dtype, device=rays_o.device)
ends = torch.ones((1, 1), dtype=ends.dtype, device=rays_o.device)
ray_indices = nerfacc.unpack_to_ray_indices(packed_info).long()
ray_indices = nerfacc.unpack_info(packed_info)
origins = rays_o[ray_indices]
dirs = rays_d[ray_indices]
if camera_indices is not None: