Changesets · Branches · Tags · Compare
| Changeset | c81bb596b5f4f53a3648b1710b2d45fa523657dc78840bc1dca89037cbf92129 |
|---|---|
| Author | Yongsen Mao <sammaoys@gmail.com> · 2025-03-28 12:23 +08:00 |
| Committer | Yongsen Mao <sammaoys@gmail.com> · 2025-03-28 12:23 +08:00 |
| Parents | 059ffe68fc98 |
1 file changed
modified EXAMPLE.md +14 −0
| @@ -8,6 +8,20 @@ | ||
| 8 | 8 | |
| 9 | 9 | You can set `sample_freq` in this [line](https://github.com/PKU-VCL-3DV/SLAM3R/blob/3831478e15b83509f3f317abc1d4f7bd3cc21e2d/scripts/demo_replica.sh#L8) to 2 to decrease the GPU memory usage and speed up the reconstruction. And you can also try increase the `CONF_THRES_L2W` threshold [here](https://github.com/PKU-VCL-3DV/SLAM3R/blob/3831478e15b83509f3f317abc1d4f7bd3cc21e2d/scripts/demo_replica.sh#L22) to get cleaner point cloud. |
| 10 | 10 | |
| 11 | +If you are using MASt3R-SLAM, we recommend you to increase the `C_conf_threshold` and add some point cloud cleaning steps for each keyframe point cloud exportation in [line](https://github.com/rmurai0610/MASt3R-SLAM/blob/c3d0d5b67bf51d558d7640ff6032407f68041f92/mast3r_slam/evaluate.py#L65), such as removing statistical outliers with following code. These will generally help to get cleaner point clouds. | |
| 12 | + | |
| 13 | +```python | |
| 14 | +... | |
| 15 | +pcd = o3d.geometry.PointCloud() | |
| 16 | +pcd.points = o3d.utility.Vector3dVector(valid_pts) | |
| 17 | +pcd.colors = o3d.utility.Vector3dVector(valid_colors) | |
| 18 | +pcd, trace = pcd.remove_statistical_outlier(nb_neighbors=10, std_ratio=1.5) | |
| 19 | +points = np.asarray(pcd.points) | |
| 20 | +color = (np.asarray(pcd.colors) * 255.0).astype(np.uint8) | |
| 21 | +pointclouds.append(points) | |
| 22 | +colors.append(color) | |
| 23 | +``` | |
| 24 | + | |
| 11 | 25 | ## 2. Align the output point cloud |
| 12 | 26 | |
| 13 | 27 | In the current version of SpatialLM, input point clouds are considered axis-aligned where the z-axis is the up axis. The input point clouds should follow the ScanNet scenes orientation convension, which is "_Transforms scans to z-up alignment for scans and tries to align walls to x-y planes._" in [Alignment](https://github.com/ScanNet/ScanNet/tree/master/Alignment). Refer to [Issue #7](https://github.com/manycore-research/SpatialLM/issues/7) for more details. |