mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 10:34:29 +08:00
Dnerf viewer and training fix (#1065)
* dnerf viewer and training fix * Update viewer_utils.py
This commit is contained in:
parent
8c3f093ecb
commit
1437a2fad5
@ -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,
|
||||
|
||||
@ -757,7 +757,7 @@ class ViewerState:
|
||||
)
|
||||
|
||||
times = self.vis["renderingState/render_time"].read()
|
||||
if times:
|
||||
if times is not None:
|
||||
times = torch.tensor([float(times)])
|
||||
|
||||
camera = Cameras(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user