fix small bugs and allow testing on images with aspect-ratio not equal to 1

This commit is contained in:
Zhuoyang committed 2023-09-14 13:44:23 -07:00
1 parent 9c061f2a99
commit e3a0f0296c
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -327,7 +327,7 @@ class GaussianSplattingModel(Model):
"max_sh_degree": self.max_sh_degree,
"FoVx": fovx,
"FoVy": fovy,
"image_height": camera.width,
"image_height": camera.height,
"image_width": camera.width,
"world_view_transform": world_view_transform,
"full_proj_transform": full_projection_matrix,
+2 -1
View File
@@ -136,7 +136,8 @@ def render_from_dict(data : dict, bg_color : torch.Tensor, scaling_modifier = 1.
projmatrix=data['full_proj_transform'],
sh_degree=data['active_sh_degree'],
campos=data['camera_center'],
prefiltered=False
prefiltered=False,
debug=False
)
rasterizer = GaussianRasterizer(raster_settings=raster_settings)