Skip to content

Commit

Permalink
use ground truth to set img size in Tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavnayel committed Jun 23, 2023
1 parent c270485 commit 5057bf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion splatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ def set_camera(self, idx, extrinsics=None, intrinsics=None):
focal_y = self.current_camera.params[1] / self.render_downsample
print(focal_x)
print(focal_y)
self.tile_info = Tiles(round(width), round(height), focal_x, focal_y, self.device)
# breakpoint()
self.tile_info = Tiles(int(self.ground_truth.shape[1]), int(self.ground_truth.shape[0]), focal_x, focal_y, self.device)
self.tile_info_cpp = self.tile_info.create_tiles()

self.ray_info = RayInfo(
Expand Down

0 comments on commit 5057bf4

Please sign in to comment.