Spaces:
Running
on
Zero
Running
on
Zero
JianyuanWang
commited on
Commit
•
c48a530
1
Parent(s):
b47a04b
update error
Browse files
vggsfm_code/vggsfm/utils/tensor_to_pycolmap.py
CHANGED
@@ -126,7 +126,13 @@ def pycolmap_to_batch_matrix(reconstruction, device="cuda"):
|
|
126 |
"""
|
127 |
|
128 |
num_images = len(reconstruction.images)
|
129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
points3D = np.zeros((max_points3D_id, 3))
|
131 |
|
132 |
for point3D_id in reconstruction.points3D:
|
|
|
126 |
"""
|
127 |
|
128 |
num_images = len(reconstruction.images)
|
129 |
+
|
130 |
+
try:
|
131 |
+
max_points3D_id = max(reconstruction.point3D_ids())
|
132 |
+
except Exception as e:
|
133 |
+
raise ValueError("Reconstruction failed") from e
|
134 |
+
|
135 |
+
|
136 |
points3D = np.zeros((max_points3D_id, 3))
|
137 |
|
138 |
for point3D_id in reconstruction.points3D:
|