Skip to content

Commit 0133520

Browse files
Update nd_rasterize.py (#93)
fix #83
1 parent e7513c8 commit 0133520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gsplat/nd_rasterize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def forward(
6161
if xys.ndimension() != 2 or xys.size(1) != 2:
6262
raise ValueError("xys must have dimensions (N, 2)")
6363

64-
if colors.ndimension() != 2 or colors.size(1) != 3:
65-
raise ValueError("colors must have dimensions (N, 3)")
64+
if colors.ndimension() != 2:
65+
raise ValueError("colors must have dimensions (N, D)")
6666

6767
channels = colors.size(1)
6868
num_points = xys.size(0)

0 commit comments

Comments
 (0)