Skip to content

Commit

Permalink
Minor fix for _RasterizeToPixels back to avoid NaNs (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
opipari authored Jun 22, 2024
1 parent 4723fe8 commit 3b38568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gsplat/cuda/_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,15 +433,15 @@ def rasterize_to_pixels(
colors = torch.cat(
[
colors,
torch.empty(*colors.shape[:-1], padded_channels, device=device),
torch.zeros(*colors.shape[:-1], padded_channels, device=device),
],
dim=-1,
)
if backgrounds is not None:
backgrounds = torch.cat(
[
backgrounds,
torch.empty(
torch.zeros(
*backgrounds.shape[:-1], padded_channels, device=device
),
],
Expand Down

0 comments on commit 3b38568

Please sign in to comment.