• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

sfu-gruvi-3dv/sanet_relocal_demo: The code and other resources of SANet: Scene A ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

sfu-gruvi-3dv/sanet_relocal_demo

开源软件地址(OpenSource Url):

https://github.com/sfu-gruvi-3dv/sanet_relocal_demo

开源编程语言(OpenSource Language):

Python 66.4%

开源软件介绍(OpenSource Introduction):

Demo code for ICCV19 Paper: SANet: Scene Agnostic Network for Camera Localization

Requirements

  • CUDA 9.0
  • OpenCV 3.2
  • pybind11 2.4.3
  • Python 3.6
  • Pytorch 0.4.1 (The cuda module requires 0.4.1 to compile)
  • jupyter lab or jupyter notebook
  • ipyvolume 0.6.0 (Visualizing 3D point cloud in jupyter)

Preparation

  1. Download 7Scenes dataset from https://www.microsoft.com/en-us/research/project/rgb-d-dataset-7-scenes/
  2. extract all sequences zip files.
  3. Re-organize the sequences using:
    python seq_data/seven_scenes/scenes2seq.py <7scene_seq_dir>
    
    e.g. suppose 7scenes sequence `heads` in /home/xxx/Dcouemtns/7scenes/heads, then,
    python seq_data/seven_scenes/scenes2seq.py /home/xxx/Dcouemtns/7scenes/heads
    The above python script will generate two binary files: train_frames.bin and train_frames.bin inside of sequence directory, each file stores information of train or test frames (e.g. extrinsic and intrinsic matrix), and can be loaded wih pickle lib.
  4. Download pre-trained pytorch model from Google Drive, unzip files to data folder. It has two pre-trained model:
    • seven_scene_model.pth sa-net model trained with sun3d and use 7Scenes sequences for evaluation.
    • netvlad_vgg16.tar netvlad model used for query retrieval.
  5. Compile python interface for vislearn/LessMore:
    cd libs/lm_pnp
    mkdir build
    cd build
    cmake ..
    make all
    Note: you may need to modify the variable PYTHON_EXECUTABLE in line 59 of CMakeLists.txt with your own python interpreter.
  6. Compile PointNet++ module (requires pytorch 0.4.1)
    cd relocal/pointnet2
    mkdir build
    cd build
    cmake ..
    make

Example (7Scenes)

Please refer to notebook example_7scenes.ipynb, it requires ipyvolume lib for visualizing point clouds.

Todo:

Add cambridge dataset examples.

References:

  1. E. Brachmann, C. Rother, ”Learning Less is More - 6D Camera Localization via 3D Surface Regression”, CVPR 2018
  2. Charles R. Qi, Li (Eric) Yi, Hao Su, Leonidas J. Guibas, "PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space"



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap