Dnerf viewer and training fix (#1065)

* dnerf viewer and training fix

* Update viewer_utils.py
This commit is contained in:
Mustafa Berk YALDIZ authored and GitHub committed 2022-11-30 23:07:21 -08:00
1 parent 8c3f093ecb
commit 1437a2fad5
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -677,7 +677,7 @@ class Cameras(TensorDataclass):
pixel_area = (dx * dy)[..., None] # ("num_rays":..., 1)
assert pixel_area.shape == num_rays_shape + (1,)
times = self.times[camera_indices, None] if self.times is not None else None
times = self.times[camera_indices, 0] if self.times is not None else None
return RayBundle(
origins=origins,