EC-SLAM: Effectively Constrained Neural RGB-D SLAM with Sparse TSDF Encoding and Global Bundle Adjustment
Guanghao Li* . Qi Chen* · Yuxiang Yan · Jian Pu
(* Equal Contribution)
Paper | Project Page
NICE_SLAM ESLAM Co-SLAM Ours GT
EC-SLAM produces accurate dense geometry and camera tracking on large-scale indoor scenes.
EC-SLAM Architecture.
We introduce EC-SLAM, a real-time dense RGB-D simultaneous localization and mapping (SLAM) system leveraging Neural Radiance Fields (NeRF). While recent NeRF-based SLAM systems have shown promising results, they have yet to fully exploit NeRF's potential to constrain pose optimization. EC-SLAM addresses this by using sparse parametric encodings and Truncated Signed Distance Fields (TSDF) to represent the map, enabling efficient fusion, reducing model parameters, and accelerating convergence. Our system also employs a globally constrained Bundle Adjustment (BA) strategy that capitalizes on NeRF's implicit loop closure correction capability, improving tracking accuracy by reinforcing constraints on keyframes most relevant to the current optimized frame. Furthermore, by integrating a feature-based and uniform sampling strategy that minimizes ineffective constraint points for pose optimization, we reduce the impact of random sampling in NeRF. Extensive evaluations on the Replica, ScanNet, and TUM datasets demonstrate state-of-the-art performance, including enhanced reconstruction accuracy due to precise pose estimation, real-time operation at 21 Hz, and tracking precision improvements of up to 50%.
Here we elaborate on how to load the necessary data, configure EC-SLAM for your use-case, debug it, and how to reproduce the results mentioned in the paper.
Running the code
Start the system with the command:python run.py configs/<dataset_name>/<config_name>
For example:
python run.py configs/Replica/room0.yaml
Evaluating
After running the code, you can see output/dataset_name/ for results.Our codebase is based on Co-SLAM.
There may be minor differences between the released codebase and the results reported in the paper. Further, we note that the GPU hardware has an influence, despite running the same seed and conda environment.
If you find our code or paper useful, please cite
@article{li2024ec,
title={EC-SLAM: Real-time Dense Neural RGB-D SLAM System with Effectively Constrained Global Bundle Adjustment},
author={Li, Guanghao and Chen, Qi and Yan, YuXiang and Pu, Jian},
journal={arXiv preprint arXiv:2404.13346},
year={2024}
}
Contact Guanghao Li for questions, comments and reporting bugs.