Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrj committed Jan 18, 2024
1 parent 32b27bd commit 908d6ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nerfstudio/models/gaussian_splatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def get_outputs(self, camera: Cameras) -> Dict[str, Union[torch.Tensor, List]]:
cy = camera.cy.item()
fovx = 2 * math.atan(camera.width / (2 * camera.fx))
fovy = 2 * math.atan(camera.height / (2 * camera.fy))
W, H = camera.width.item(), camera.height.item()
W, H = int(camera.width.item()), int(camera.height.item())
self.last_size = (H, W)
projmat = projection_matrix(0.001, 1000, fovx, fovy, device=self.device)
BLOCK_X, BLOCK_Y = 16, 16
Expand Down Expand Up @@ -697,7 +697,7 @@ def get_outputs(self, camera: Cameras) -> Dict[str, Union[torch.Tensor, List]]:
depths,
self.radii,
conics,
num_tiles_hit,
num_tiles_hit, # type: ignore
rgbs,
torch.sigmoid(opacities_crop),
H,
Expand All @@ -712,7 +712,7 @@ def get_outputs(self, camera: Cameras) -> Dict[str, Union[torch.Tensor, List]]:
depths,
self.radii,
conics,
num_tiles_hit,
num_tiles_hit, # type: ignore
depths[:, None].repeat(1, 3),
torch.sigmoid(opacities_crop),
H,
Expand Down

0 comments on commit 908d6ee

Please sign in to comment.