You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is something wrong with the result of this function traverse_grids. Sometimes may filter ray cause black line.
fromnerfacc.gridimport_enlarge_aabb, traverse_gridsbinaries=torch.zeros([1,32,32,32],dtype=torch.bool).cuda().fill_(True)
aabbs=torch.tensor([[-1,-1,-1,1,1,1]]).float().cuda()
tmp_rays_o=torch.tensor([[1,0,0],[1,0,0]]).float().cuda()
tmp_rays_d=torch.tensor([[-1,1e-16,0],[-1,-1e-16,0]]).float().cuda() ## use -1e-16 is wrongfar_planes=torch.tensor([3,3]).float().cuda()
near_planes=torch.tensor([0,0]).float().cuda()
render_step_size=0.001cone_angle=0traverse_grids(tmp_rays_o,tmp_rays_d,binaries,aabbs,near_planes=near_planes,far_planes=far_planes,step_size=render_step_size,cone_angle=cone_angle)[0].ray_indices## result tensor([0, 0, 0, ..., 0, 0, 0], device='cuda:0')## should has ray id 1
fromnerfacc.gridimport_enlarge_aabb, traverse_gridsbinaries=torch.zeros([1,32,32,32],dtype=torch.bool).cuda().fill_(True)
aabbs=torch.tensor([[-1,-1,-1,1,1,1]]).float().cuda()
tmp_rays_o=torch.tensor([[1,0,0],[1,0,0]]).float().cuda()
tmp_rays_d=torch.tensor([[-1,1e-16,0],[-1,-1e-7,0]]).float().cuda() ## use -1e-7 is rightfar_planes=torch.tensor([3,3]).float().cuda()
near_planes=torch.tensor([0,0]).float().cuda()
render_step_size=0.001cone_angle=0traverse_grids(tmp_rays_o,tmp_rays_d,binaries,aabbs,near_planes=near_planes,far_planes=far_planes,step_size=render_step_size,cone_angle=cone_angle)[0].ray_indices## result tensor([0, 0, 0, ..., 1, 1, 1], device='cuda:0')
The text was updated successfully, but these errors were encountered:
There is something wrong with the result of this function traverse_grids. Sometimes may filter ray cause black line.
The text was updated successfully, but these errors were encountered: