This repository will contain the TensorFlow code for the model introduced in the CVPR 2020 paper:
Wide-Baseline Relative Camera Pose Estimation with Directional Learning \ Kefan Chen, Noah Snavely, Ameesh Makadia \ IEEE Conference on Computer Vision and Pattern Recognition (CVPR 2020). \ arXiv
Required packages: tensorflow 1.15, tensorflow_graphics, tensorflow_addons, tensorflow_probability, tf_slim, pickle
MatterportA test data\ MatterportB test data
dataset.generate_from_meta can create the datasets of images and ground truth from the Matterport3D dataset given the meta data files.
dataset.generate_random_views can be used to generate a large-scale wide stereo dataset with camera pose labels from a panoramic image dataset.
python train.py \
--checkpoint_dir <path_to_checkpoints_and_logs> \
--data_dir <path_to_training_set> \
--model 9D
python train.py \
--checkpoint_dir <path_to_checkpoints_and_logs> \
--data_dir <path_to_training_set> \
--model T
DirectionNet-R
python eval.py \
--checkpoint_dir <path_to_load_checkpoints> \
--eval_data_dir <path_to_test_set> \
--save_summary_dir <path_to_save_logs> \
--testset_size <testset_size> \
--batch <test_batch> \
--model 9D
DirectionNet-T
python eval.py \
--checkpoint_dir <path_to_load_checkpoints> \
--eval_data_dir <path_to_test_set> \
--save_summary_dir <path_to_save_logs> \
--testset_size <testset_size> \
--batch <test_batch> \
--model T
@InProceedings{Chen_2021_CVPR,
author = {Chen, Kefan and Snavely, Noah and Makadia, Ameesh},
title = {Wide-Baseline Relative Camera Pose Estimation With Directional Learning},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2021},
pages = {3258-3268}
}