mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 06:49:13 +08:00
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:
1 parent
73fc3dcd63
commit
281f81f1ec
1 file changed
-2
@@ -872,8 +872,6 @@ class Cameras(TensorDataclass):
|
|||||||
else:
|
else:
|
||||||
metadata = {"directions_norm": directions_norm[0].detach()}
|
metadata = {"directions_norm": directions_norm[0].detach()}
|
||||||
|
|
||||||
times = self.times[camera_indices, 0] if self.times is not None else None
|
|
||||||
|
|
||||||
return RayBundle(
|
return RayBundle(
|
||||||
origins=origins,
|
origins=origins,
|
||||||
directions=directions,
|
directions=directions,
|
||||||
|
|||||||
Reference in new issue
Block a user