Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render_transmittance_from_density crash since nerfacc.cuda.is_cub_available() is False #282

Open
zjcs opened this issue Feb 4, 2024 · 1 comment

Comments

@zjcs
Copy link

zjcs commented Feb 4, 2024

When I install nerfacc with torch2.0.1, render_transmittance_from_density crashed. When I read the code, I find that it is caused by the implemention of render_transmittance_from_density, also listed bellow:

def render_transmittance_from_density( t_starts: Tensor, t_ends: Tensor, sigmas: Tensor, packed_info: Optional[Tensor] = None, ray_indices: Optional[Tensor] = None, n_rays: Optional[int] = None, prefix_trans: Optional[Tensor] = None, ) -> Tuple[Tensor, Tensor]: if not is_cub_available() and packed_info is None: # Convert ray indices to packed info packed_info = pack_info(ray_indices, n_rays) ray_indices = None sigmas_dt = sigmas * (t_ends - t_starts) alphas = 1.0 - torch.exp(-sigmas_dt) trans = torch.exp( -exclusive_sum(sigmas_dt, packed_info=packed_info, indices=ray_indices) ) if prefix_trans is not None: trans = trans * prefix_trans return trans, alphas

When I input the required arguments t_starts, t_ends, sigmas; However the code step into the the packed_info = pack_info(ray_indices, n_rays), while ray_indices is None and error occurs.

It seems that the latest code has some bug?
`

@liruilong940607
Copy link
Collaborator

Could you provide a minimal script that reproduce it? (I.E. what's the inputs you pass into this function?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants