Skip to content

Commit

Permalink
Update cameras.py - removed duplicate lines (#2661)
Browse files Browse the repository at this point in the history
The self.times was being computed twice in cameras.py in the same function which was unnecessary
  • Loading branch information
IamMohitM authored Dec 12, 2023
1 parent 73fc3dc commit 281f81f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions nerfstudio/cameras/cameras.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,6 @@ def _compute_rays_for_vr180(
else:
metadata = {"directions_norm": directions_norm[0].detach()}

times = self.times[camera_indices, 0] if self.times is not None else None

return RayBundle(
origins=origins,
directions=directions,
Expand Down

0 comments on commit 281f81f

Please sign in to comment.