mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2025-05-07 13:34:26 +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)
|
xyz, rgb, _ = read_points3D_binary(bin_path)
|
||||||
except:
|
except:
|
||||||
xyz, rgb, _ = read_points3D_text(txt_path)
|
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)
|
storePly(ply_path, xyz, rgb)
|
||||||
try:
|
try:
|
||||||
pcd = fetchPly(ply_path)
|
pcd = fetchPly(ply_path)
|
||||||
@ -312,4 +313,4 @@ def readNerfSyntheticInfo(path, white_background, depths, eval, extension=".png"
|
|||||||
sceneLoadTypeCallbacks = {
|
sceneLoadTypeCallbacks = {
|
||||||
"Colmap": readColmapSceneInfo,
|
"Colmap": readColmapSceneInfo,
|
||||||
"Blender" : readNerfSyntheticInfo
|
"Blender" : readNerfSyntheticInfo
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user