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
Describe the bug
When I try to remove all actors during rendering, throws IndexError: shape mismatch.
To Reproduce
Steps to reproduce the behavior:
Train on the pandaset as described
Render with the option --actor-removal-time x.x
See error (for sequence 001 and actor removal time 0.0)
nerfstudio/scripts/render.py", line 739, in modify_actors
pipeline.model.dynamic_actors.actor_present_at_time[no_actor_mask, indices] = False
IndexError: shape mismatch: indexing tensors could not be broadcast together with shapes [40], [47]
Expected behavior
the no_actor_mask and indices should be used as indices instead of concatenating together.
Additional context
As far as pytorch 2.0.1-2.3.1, the > operator outputs tensor [true, false ,....] instead of index.
I solved the problem by replacing line 738 with no_actor_mask = torch.nonzero(pipeline.model.dynamic_actors.unique_timestamps > actor_removal_time, as_tuple=False)
The text was updated successfully, but these errors were encountered:
Describe the bug
When I try to remove all actors during rendering, throws IndexError: shape mismatch.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the no_actor_mask and indices should be used as indices instead of concatenating together.
Additional context
As far as pytorch 2.0.1-2.3.1, the > operator outputs tensor [true, false ,....] instead of index.
I solved the problem by replacing line 738 with
no_actor_mask = torch.nonzero(pipeline.model.dynamic_actors.unique_timestamps > actor_removal_time, as_tuple=False)
The text was updated successfully, but these errors were encountered: