mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 21:39:06 +08:00
Dnerf viewer and training fix (#1065)
* dnerf viewer and training fix * Update viewer_utils.py
This commit is contained in:
1 parent
8c3f093ecb
commit
1437a2fad5
2 files changed
+2
-2
No files matched your search
@@ -677,7 +677,7 @@ class Cameras(TensorDataclass):
|
|||||||
pixel_area = (dx * dy)[..., None] # ("num_rays":..., 1)
|
pixel_area = (dx * dy)[..., None] # ("num_rays":..., 1)
|
||||||
assert pixel_area.shape == num_rays_shape + (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(
|
return RayBundle(
|
||||||
origins=origins,
|
origins=origins,
|
||||||
|
|||||||
@@ -757,7 +757,7 @@ class ViewerState:
|
|||||||
)
|
)
|
||||||
|
|
||||||
times = self.vis["renderingState/render_time"].read()
|
times = self.vis["renderingState/render_time"].read()
|
||||||
if times:
|
if times is not None:
|
||||||
times = torch.tensor([float(times)])
|
times = torch.tensor([float(times)])
|
||||||
|
|
||||||
camera = Cameras(
|
camera = Cameras(
|
||||||
|
|||||||
Reference in new issue
Block a user