[WIP] Upload demo_colmap.py, which can (a) run both vggt and vggt+ba, (b) output in a colmap format, (c) in the original image resolution. The output can be directly used for nerf/gaussian training.
This commit is contained in:
+3
-3
@@ -228,9 +228,6 @@ def demo_fn(args):
|
||||
|
||||
reconstruction_resolution = vggt_fixed_resolution
|
||||
|
||||
# Save point cloud for fast visualization
|
||||
trimesh.PointCloud(points_3d, colors=points_rgb).export(os.path.join(args.scene_dir, "sparse/points.ply"))
|
||||
|
||||
reconstruction = rename_colmap_recons_and_rescale_camera(
|
||||
reconstruction,
|
||||
base_image_path_list,
|
||||
@@ -245,6 +242,9 @@ def demo_fn(args):
|
||||
os.makedirs(sparse_reconstruction_dir, exist_ok=True)
|
||||
reconstruction.write(sparse_reconstruction_dir)
|
||||
|
||||
# Save point cloud for fast visualization
|
||||
trimesh.PointCloud(points_3d, colors=points_rgb).export(os.path.join(args.scene_dir, "sparse/points.ply"))
|
||||
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user