Spaces:
Running
Running
add log
Browse files
app.py
CHANGED
@@ -218,6 +218,8 @@ def reconstruct(video_path, conf_thresh, kf_every,
|
|
218 |
pcd.colors = o3d.utility.Vector3dVector(image[combined_mask])
|
219 |
pcd.normals = o3d.utility.Vector3dVector(pts_normal[combined_mask])
|
220 |
pcds.append(pcd)
|
|
|
|
|
221 |
|
222 |
pcd_combined = combine_and_clean_point_clouds(pcds, voxel_size=0.001)
|
223 |
|
@@ -227,8 +229,13 @@ def reconstruct(video_path, conf_thresh, kf_every,
|
|
227 |
o3d_geometry = point2mesh(pcd_combined)
|
228 |
|
229 |
# Create coarse result
|
|
|
|
|
|
|
230 |
coarse_output_path = export_geometry(o3d_geometry, as_pointcloud)
|
231 |
|
|
|
|
|
232 |
yield coarse_output_path, None
|
233 |
|
234 |
if refine:
|
@@ -243,6 +250,8 @@ def reconstruct(video_path, conf_thresh, kf_every,
|
|
243 |
|
244 |
# Create coarse result
|
245 |
refined_output_path = export_geometry(o3d_geometry, as_pointcloud)
|
|
|
|
|
246 |
|
247 |
yield coarse_output_path, refined_output_path
|
248 |
|
|
|
218 |
pcd.colors = o3d.utility.Vector3dVector(image[combined_mask])
|
219 |
pcd.normals = o3d.utility.Vector3dVector(pts_normal[combined_mask])
|
220 |
pcds.append(pcd)
|
221 |
+
|
222 |
+
print(f'Finished Process results {demo_name}')
|
223 |
|
224 |
pcd_combined = combine_and_clean_point_clouds(pcds, voxel_size=0.001)
|
225 |
|
|
|
229 |
o3d_geometry = point2mesh(pcd_combined)
|
230 |
|
231 |
# Create coarse result
|
232 |
+
|
233 |
+
print(f'Create coarse result {demo_name}')
|
234 |
+
|
235 |
coarse_output_path = export_geometry(o3d_geometry, as_pointcloud)
|
236 |
|
237 |
+
print(f'Finished Create coarse result {demo_name}')
|
238 |
+
|
239 |
yield coarse_output_path, None
|
240 |
|
241 |
if refine:
|
|
|
250 |
|
251 |
# Create coarse result
|
252 |
refined_output_path = export_geometry(o3d_geometry, as_pointcloud)
|
253 |
+
|
254 |
+
print(f'Perform global optimization {demo_name}')
|
255 |
|
256 |
yield coarse_output_path, refined_output_path
|
257 |
|