mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2025-03-29 03:43:27 +00:00
🐛 Fixed the issue that network_gui had connection errors when train_test_exp was turned on
This commit is contained in:
parent
54c035f783
commit
1a808846cb
@ -110,7 +110,7 @@ def render(viewpoint_camera, pc : GaussianModel, pipe, bg_color : torch.Tensor,
|
||||
cov3D_precomp = cov3D_precomp)
|
||||
|
||||
# Apply exposure to rendered image (training only)
|
||||
if use_trained_exp:
|
||||
if use_trained_exp and hasattr(viewpoint_camera, 'image_name'):
|
||||
exposure = pc.get_exposure_from_name(viewpoint_camera.image_name)
|
||||
rendered_image = torch.matmul(rendered_image.permute(1, 2, 0), exposure[:3, :3]).permute(2, 0, 1) + exposure[:3, 3, None, None]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user