Skip to content

Commit 0d35396

Browse files
committed
Fix a bug in COLMAP parser
1 parent e33a32a commit 0d35396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/gsplat_utils/datasets/colmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __init__(
8787
params = np.empty(0, dtype=np.float32)
8888
camtype = "perspective"
8989
if type_ == 2 or type_ == "SIMPLE_RADIAL":
90-
params = np.array([cam.k1], dtype=np.float32)
90+
params = np.array([cam.k1, 0.0, 0.0, 0.0], dtype=np.float32)
9191
camtype = "perspective"
9292
elif type_ == 3 or type_ == "RADIAL":
9393
params = np.array([cam.k1, cam.k2, 0.0, 0.0], dtype=np.float32)

0 commit comments

Comments
 (0)