Skip to content

utiasSTARS/dpc-net

Repository files navigation

DPC-Net: Deep Pose Correction for Visual Localization

Code for Dense Pose Corrections. DPC-Net learns SE(3) corrections to classical geometric and probabilistic visual localization pipelines (e.g., visual odometry).

Installation & Pre-Requisites

  1. Ensure that pytorch is installed on your machine. We perform all training and testing on a a GTX Titan X (Maxwell) with 12GiB of memory.

  2. Install pyslam and liegroups. We use pyslam's TrajectoryMetrics class to store computed trajectories, and use it to compute pose graph relaxations.

  3. Clone DPC-net:

git clone https://github.com/utiasSTARS/dpc-net

Testing with pre-trained model on KITTI data

  1. Download pre-trained models and stats for our sample estimator (based on libviso2):

ftp://128.100.201.179/2017-dpc-net

  1. Open and edit the appropriate variables (mostly paths) in test_dpc_net.py.

  2. Run test_dpc_net.py --seqs 00 --corr pose.

Note that this code does not include the pose graph relaxation, and as a result the statistics it outputs are based on a simple correction model (where in between poses are left untouched).

Training

To train DPC-Net, you need two things:

  1. A list of frame-to-frame corrections to a localization pipeline (this is typically computed using some form of ground-truth).
  2. A set of images (stereo or mono, depending on whether the correction is SO(3) or SE(3)) from which the model can learn corrections.

Using KITTI data

To use the KITTI odometry benchmark to train DPC-Net, you can use the scripts train_dpc_net.py and create_kitti_training_data.py as starting points. If you use our framework, you'll need to save your estimator's poses in a TrajectoryMetrics object.

Citation

If you use this code in your research, please cite:

@article{2018_Peretroukhin_DPC,
  author = {Valentin Peretroukhin and Jonathan Kelly},
  doi = {10.1109/LRA.2017.2778765},
  journal = {{IEEE} Robotics and Automation Letters},
  link = {https://arxiv.org/abs/1709.03128},
  title = {{DPC-Net}: Deep Pose Correction for Visual Localization},
  year = {2018}
}

About

Deep Pose Correction for Visual Localization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages