Update cameras.py - removed duplicate lines (#2661)

The self.times was being computed twice in cameras.py in the same function which was unnecessary
This commit is contained in:
Mohit Motwani authored and GitHub committed 2023-12-12 11:13:50 +00:00
1 parent 73fc3dcd63
commit 281f81f1ec
1 file changed
-2
-2
View File
@@ -872,8 +872,6 @@ class Cameras(TensorDataclass):
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,