开源软件名称(OpenSource Name):AaltoVision/hscnet开源软件地址(OpenSource Url):https://github.com/AaltoVision/hscnet开源编程语言(OpenSource Language):Python 71.8%开源软件介绍(OpenSource Introduction):Hierarchical Scene Coordinate Classification and Regression for Visual LocalizationThis is the PyTorch implementation of our paper, a hierarchical scene coordinate prediction approach for one-shot RGB camera relocalization: Hierarchical Scene Coordinate Classification and Regression for Visual Localization, CVPR 2020 SetupPython3 and the following packages are required:
It is recommended to use a conda environment:
To run the evaluation script, you will need to build the cython module: cd ./pnpransac
python setup.py build_ext --inplace DataWe currently support 7-Scenes, 12-Scenes, Cambridge Landmarks, and the three combined scenes which have been used in the paper. We will upload the code for the Aachen Day-Night dataset experiments. You will need to download the datasets from the websites, and we provide a data package which contains other necessary files for reproducing our results. Note that for the Cambridge Landmarks dataset, you will also need to rename the files according to the EvaluationThe trained models for the main experiments in the paper can be downloaded here. To evaluate on a scene from a dataset: python eval.py \
--model [hscnet|scrnet] \
--dataset [7S|12S|Cambridge|i7S|i12S|i19S] \
--scene scene_name \
--checkpoint /path/to/saved/model/ \
--data_path /path/to/data/ TrainingYou can train the hierarchical scene coordinate network or the baseline regression network by running the following command: python train.py \
--model [hscnet|scrnet] \
--dataset [7S|12S|Cambridge|i7S|i12S|i19S] \
--scene scene_name \ # not required for the combined scenes
--n_iter number_of_training_iterations \
--data_path /path/to/data/ LicenseCopyright (c) 2020 AaltoVision. AcknowledgementsThe PnP-RANSAC pose solver builds on DSAC++. The sensor calibration file and the normalization translation files for the 7-Scenes dataset are from DSAC. The rendered depth images for the Cambridge Landmarks dataset are from DSAC++. CitationPlease consider citing our paper if you find this code useful for your research:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论