Skip to content

Commit

Permalink
Update rendering.py
Browse files Browse the repository at this point in the history
Fix #406
  • Loading branch information
liruilong940607 authored Sep 17, 2024
1 parent d7c7337 commit 23f30a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gsplat/rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ def rasterization_2dgs_inria_wrapper(
render_depth_expected * (1 - depth_ratio) + (depth_ratio) * render_depth_median
)

normals_surf = depth_to_normal(render_depth, viewmats, Ks)
normals_surf = depth_to_normal(render_depth, torch.linalg.inv(viewmats), Ks)
normals_surf = normals_surf * (render_alphas).detach()

render_colors = torch.cat([render_colors, render_depth], dim=-1)
Expand Down

0 comments on commit 23f30a1

Please sign in to comment.