mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2025-05-07 21:44:30 +00:00
Add assert check for valid point clouds for COLMAP dataset
This addresses error `RuntimeError: CUDA error: invalid configuration argument` due to zero points
This commit is contained in:
parent
54c035f783
commit
ef57af14df
@ -211,6 +211,7 @@ def readColmapSceneInfo(path, images, depths, eval, train_test_exp, llffhold=8):
|
||||
xyz, rgb, _ = read_points3D_binary(bin_path)
|
||||
except:
|
||||
xyz, rgb, _ = read_points3D_text(txt_path)
|
||||
assert xyz and rgb, f"Error loading {path} data. Point data must exist in either points3D.bin or points3D.txt"
|
||||
storePly(ply_path, xyz, rgb)
|
||||
try:
|
||||
pcd = fetchPly(ply_path)
|
||||
|
Loading…
Reference in New Issue
Block a user