栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

LoFTR Detector-Free Local Feature Matching with Transformers 环境配置

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

LoFTR Detector-Free Local Feature Matching with Transformers 环境配置

LoFTR: Detector-Free Local Feature Matching with Transformers 环境配置 一、环境配置及文件下载 1.文件下载

源码下载链接:https://zju3dv.github.io/loftr

相关模型下载链接: https://pan.baidu.com/s/1yM91Y4JrRiKJjHQ24ubZKw 密码: 2oc9

2.环境配置
  • 将文件路径切换到解压后的源码文件夹中执行以下命令
# For full pytorch-lightning trainer features (recommended) 过程漫长,需要等待下载···
conda env create -f environment.yaml  
conda activate loftr

# For the LoFTR matcher only
pip install torch einops yacs kornia
二、运行demo 1.下载相关代码
cd src/loftr/utils  
wget https://raw.githubusercontent.com/magicleap/SuperGluePretrainedNetwork/master/models/superglue.py 

注意:此处需要修改hosts文件,具体命令如下:

sudo gedit /etc/hosts

#将以下内容添加进hosts文件,点击保存,注意此处的IP地址不一定可以使用,建议去https://google.com.ipaddress.com/drive.google.com查询最新的IP地址
185.199.108.133  raw.githubusercontent.com

/etc/init.d/networking restart
2.运行demo
cd demo
./run_demo.sh
#开启摄像头
 python demo_loftr.py --weight ../weights/outdoor_ds.ckpt  --input ../testdata/scannet_test_1500/npu/color --save_video  --save_input
 python demo_loftr.py --weight ../weights/outdoor_ds.ckpt  --input ../testdata/megadepth_test_1500/Undistorted_SfM/0015/images  --save_video --save_input

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/307846.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号