mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-05 07:18:57 +08:00
fix small bugs and allow testing on images with aspect-ratio not equal to 1
This commit is contained in:
1 parent
9c061f2a99
commit
e3a0f0296c
2 files changed
+3
-2
No files matched your search
@@ -327,7 +327,7 @@ class GaussianSplattingModel(Model):
|
|||||||
"max_sh_degree": self.max_sh_degree,
|
"max_sh_degree": self.max_sh_degree,
|
||||||
"FoVx": fovx,
|
"FoVx": fovx,
|
||||||
"FoVy": fovy,
|
"FoVy": fovy,
|
||||||
"image_height": camera.width,
|
"image_height": camera.height,
|
||||||
"image_width": camera.width,
|
"image_width": camera.width,
|
||||||
"world_view_transform": world_view_transform,
|
"world_view_transform": world_view_transform,
|
||||||
"full_proj_transform": full_projection_matrix,
|
"full_proj_transform": full_projection_matrix,
|
||||||
|
|||||||
@@ -136,7 +136,8 @@ def render_from_dict(data : dict, bg_color : torch.Tensor, scaling_modifier = 1.
|
|||||||
projmatrix=data['full_proj_transform'],
|
projmatrix=data['full_proj_transform'],
|
||||||
sh_degree=data['active_sh_degree'],
|
sh_degree=data['active_sh_degree'],
|
||||||
campos=data['camera_center'],
|
campos=data['camera_center'],
|
||||||
prefiltered=False
|
prefiltered=False,
|
||||||
|
debug=False
|
||||||
)
|
)
|
||||||
|
|
||||||
rasterizer = GaussianRasterizer(raster_settings=raster_settings)
|
rasterizer = GaussianRasterizer(raster_settings=raster_settings)
|
||||||
|
|||||||
Reference in new issue
Block a user