diff --git a/scene/dataset_readers.py b/scene/dataset_readers.py index 493d98d..9e935fb 100644 --- a/scene/dataset_readers.py +++ b/scene/dataset_readers.py @@ -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) @@ -312,4 +313,4 @@ def readNerfSyntheticInfo(path, white_background, depths, eval, extension=".png" sceneLoadTypeCallbacks = { "Colmap": readColmapSceneInfo, "Blender" : readNerfSyntheticInfo -} \ No newline at end of file +}