From 5057bf4dd2ec9f3395eac714b3369294d157ef5f Mon Sep 17 00:00:00 2001 From: vaibhavnayel Date: Fri, 23 Jun 2023 20:01:54 +0000 Subject: [PATCH] use ground truth to set img size in Tiles --- splatter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/splatter.py b/splatter.py index 9bcb2a9..0282a97 100644 --- a/splatter.py +++ b/splatter.py @@ -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(