Skip to content

Commit

Permalink
ran black
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavZavadskyy committed Aug 21, 2024
1 parent 7fd8585 commit e227643
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gsplat/cuda/_torch_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ def _ortho_proj(
J = torch.stack([fx, O, O, O, fy, O], dim=-1).reshape(C, 1, 2, 3).repeat(1, N, 1, 1)

cov2d = torch.einsum("...ij,...jk,...kl->...il", J, covars, J.transpose(-1, -2))
means2d = means[..., :2] * Ks[:, None, [0, 1], [0, 1]] + Ks[:, None, [0, 1], [2, 2]] # [C, N, 2]
means2d = (
means[..., :2] * Ks[:, None, [0, 1], [0, 1]] + Ks[:, None, [0, 1], [2, 2]]
) # [C, N, 2]
return means2d, cov2d # [C, N, 2], [C, N, 2, 2]


Expand Down

0 comments on commit e227643

Please sign in to comment.