From 281f81f1ec75c2be6d5793d617896b9b1ca8114d Mon Sep 17 00:00:00 2001 From: Mohit Motwani Date: Tue, 12 Dec 2023 16:43:50 +0530 Subject: [PATCH] Update cameras.py - removed duplicate lines (#2661) The self.times was being computed twice in cameras.py in the same function which was unnecessary --- nerfstudio/cameras/cameras.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/nerfstudio/cameras/cameras.py b/nerfstudio/cameras/cameras.py index c1b988dbb..467c8fcc0 100644 --- a/nerfstudio/cameras/cameras.py +++ b/nerfstudio/cameras/cameras.py @@ -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,