Skip to content
styufoPublic

About

Track2Map: Online Deformable SLAM with Motion-Aware Pose Optimization in Robotic Surgery

Resources

Stars

43 stars

Watchers

0 watching

Forks

Latest commit

 

History

52 Commits

Folders and files

Repository files navigation

Track2Map

Official repository for Track2Map: Online Deformable SLAM with Motion-Aware Pose Optimization in Robotic Surgery(MICCAI 2026).

Demo Video

You can download/watch the demo video here: Track2Map_demo.mp4

vis.mov

This repo keeps runnable paths for 3 practical modes:

  1. clean_pose: use dataset camera poses directly, no pose initialization from scratch, no pose optimization.
  2. noisy: start from noisy pose.
  3. no_pose: no camera pose provided; start from no prior and estimate+optimize online.

1) Environment

conda env create -f environment.yml
conda activate track2map

pip install -e src/submodules/gaussian-rasterization
pip install -e src/submodules/simple-knn

Clone 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 foundationstereo

2) Dataset prepare

Download 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.

1x noisy pose (light noise)

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_light

10x noisy pose (heavy noise)

python 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_transx10

3) Run

Use scripts/run_track2map.py for all modes.

Mode A: clean pose

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 \
  --visualize

Mode B: noisy

python 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 \
  --visualize

Mode C: no pose prior

python 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

4) Evaluation and Visual outputs

--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_found

5) Acknowledgements

Our 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!

About

Track2Map: Online Deformable SLAM with Motion-Aware Pose Optimization in Robotic Surgery

Resources

Stars

43 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages