Official repository for Track2Map: Online Deformable SLAM with Motion-Aware Pose Optimization in Robotic Surgery(MICCAI 2026).
You can download/watch the demo video here: Track2Map_demo.mp4
vis.mov
This repo keeps runnable paths for 3 practical modes:
clean_pose: use dataset camera poses directly, no pose initialization from scratch, no pose optimization.noisy: start from noisy pose.no_pose: no camera pose provided; start from no prior and estimate+optimize online.
conda env create -f environment.yml
conda activate track2map
pip install -e src/submodules/gaussian-rasterization
pip install -e src/submodules/simple-knnClone external dependencies and download the weight of foundation stereo:
git clone https://github.com/facebookresearch/co-tracker.git cotracker
git clone https://github.com/NVlabs/FoundationStereo.git foundationstereoDownload the data from StereoMIS Tracking and unpack it in the repository base folder.
If you want to test the model's ability under noisy pose, you can generate the noisy pose groundtruth_noisy.txt from gt camera pose groundtruth.txt by the script we provide.
python scripts/perturb_stereomis_groundtruth.py \
--config configs/StereoMIS/noise/noisy_pose_1x.yaml \
--input-root /path/to/steremis_tracking \
--out-root /path/to/stereomis_noisy_lightpython scripts/perturb_stereomis_groundtruth.py \
--config configs/StereoMIS/noise/noisy_pose_10x.yaml \
--input-root /path/to/steremis_tracking \
--out-root /path/to/stereomis_noisy_light_transx10Use scripts/run_track2map.py for all modes.
python scripts/run_track2map.py \
--mode clean_pose \
--seq P3_1 \
--input-folder /path/to/steremis_tracking/P3_1 \
--pose-file /path/to/steremis_tracking/P3_1/groundtruth.txt \
--output /path/to/output/p31_clean_found \
--visualizepython scripts/run_track2map.py \
--mode noisy \
--seq P3_1 \
--input-folder /path/to/steremis_tracking/P3_1 \
--pose-file /path/to/stereomis_noisy_light_transx10/P3_1/groundtruth_noisy.txt \
--output /path/to/output/p31_noisy_found \
--visualizepython scripts/run_track2map.py \
--mode no_pose \
--seq P3_1 \
--input-folder /path/to/steremis_tracking/P3_1 \
--output /path/to/output/p31_nopose_found \
--visualize--visualize render/mapping videos and related visualization outputs in each run folder.
For reconstruction metrics (PSNR/SSIM/LPIPS), run with --visualize; otherwise raw_rgb/raw_depth may stay empty.
Run the evaluation script to compute metrics:
python scripts/eval_track2map_metrics.py \
--seq P3_1 \
--input-root /path/to/steremis_tracking \
--output-dir /path/to/output/p31_nopose_foundOur code is based on Online-endo-track, our depth estimation is based on FoundationStereo, and our tracking method is based on CoTracker3. We thank the authors for their excellent work!