Learning Discriminative and Transformation Covariant Local Feature Detectors实验环境搭建详细过程
依赖项:
Python 3.4.3
tensorflow>1.0.0, tqdm, cv2, exifread, skimage, glob
1、安装tensorflow:https://www.tensorflow.org/install/pip?lang=python3
1、安装python开发环境
sudo apt update sudo apt install python3-dev python3-pip sudo pip3 install -U virtualenv
2、创建虚拟环境(Python虚拟环境用于将包安装与系统隔离。)
virtualenv --system-site-packages -p python3 ./venv#创建目录venv来保存虚拟环境 source ./venv/bin/activate #激活虚拟环境 #激活之后,shell提示符cd ../../加上了(venv) pip install --upgrade pip # upgrading pip pip list #how packages installed within the virtual environment deactivate # exit virtualenv
3、使用pip安装tensflow
pip install tensorflow import tensorflow as tf; print(tf.__version__)" # 输出1.11.0
https://www.tensorflow.org/install/gpu 这是链接地址:
注:只有在安装了Cuda Toolkit7.5和cuDNN v4的64位Ubuntu下面可以通过pip安装支持GPU的tensflow。不然就需要使用源码安装。
如果要支持GPU,需要安装Cuda Toolkit(V>7.0)和cuDNN(V>=2)
tensorflow只支持计算能力>3.0的GPU。
2、安装tqdm https://github.com/tqdm/tqdm这是介绍
pip install tqdm
安装的是4.27.0版本的。
3、安装cv2
pip install opencv-python
安装的版本是:opencv-python-3.4.3.18
4、安装exifread https://pypi.org/project/ExifRead/
pip install ExifRead
安装的版本是:(2.1.2)
5、安装scikit-image https://scikit-image.org/
pip install -U scikit-image
6、安装glob https://pypi.org/project/glob2/
glob用它可以查找符合特定规则的文件路径名。查找文件只用到三个匹配符:"*", "?", "[]"
pip install glob2
依赖项到这里就安装完成了。
-----------------------------------------------分割线-----------------------下面是使用(Usage)
1、得到数据集,先进行下载https://www.dropbox.com/s/l7a8zvni6ia5f9g/datasets.tar.gz?dl=0
下载完成后解压数据到./data目录下。
2、运行代码
cd ./script # 切换当前路径 ./batch\_run_train.sh #运行脚本去生成transformed patch and train the model ./batch\_run_test.sh #提取局部特征点Extract local feature point ./batch\_run_eval.sh #评估性能Evaluate the performance
Learning Discriminative and Transformation Covariant Local Feature Detectors实验环境搭建详细过程的更多相关文章
- Image Processing and Computer Vision_Review:Local Invariant Feature Detectors: A Survey——2007.11
翻译 局部不变特征探测器:一项调查 摘要 -在本次调查中,我们概述了不变兴趣点探测器,它们如何随着时间的推移而发展,它们如何工作,以及它们各自的优点和缺点.我们首先定义理想局部特征检测器的属性.接下来 ...
- Learning local feature descriptors with triplets and shallow convolutional neural networks 论文阅读笔记
题目翻译:学习 local feature descriptors 使用 triplets 还有浅的卷积神经网络.读罢此文,只觉收获满满,同时另外印象最深的也是一个浅(文章中会提及)字. 1 Cont ...
- Deep Learning 23:dropout理解_之读论文“Improving neural networks by preventing co-adaptation of feature detectors”
理论知识:Deep learning:四十一(Dropout简单理解).深度学习(二十二)Dropout浅层理解与实现.“Improving neural networks by preventing ...
- Learning Spread-out Local Feature Descriptors
论文Learning Spread-out Local Feature Descriptors 为什么介绍此文:引入了一种正则化手段,结合其他网络的损失函数,尤其是最新cvpr 2018的hardne ...
- 深度学习基础(四) Dropout_Improving neural networks by preventing co-adaptation of feature detectors
该笔记是我快速浏览论文后的记录,部分章节并没有仔细看,所以比较粗糙. 从摘要中可以得知,论文提出在每次训练时通过随机忽略一半的feature detectors(units)可以极大地降低过拟合.该方 ...
- 论文笔记(1)-Dropout-Improving neural networks by preventing co-adaptation of feature detectors
Improving neural networks by preventing co-adaptation of feature detectors 是Hinton在2012年6月份发表的,从这篇文章 ...
- 关于 Local feature 和 Global feature 的组合
关于 Local feature 和 Global feature 的组合 1.全局上下文建模:
- Paper-[arXiv 1710.03144]Island Loss for Learning Discriminative Features in Facial Expression
[arXiv 1710.03144]Island Loss for Learning Discriminative Features in Facial Expression ABSTRACT 作者在 ...
- local feature和global feature的理解
在计算机视觉方面,global feature是基于整张图像提取的特征,也就是说基于all pixels,常见的有颜色直方图.形状描述子.GIST等:local feature相对来说就是基于局部图像 ...
随机推荐
- Oracle VM VirtualBox启动新建虚拟机弹错--不能为虚拟机xxxx电脑 打开一个新任务
有三种方案: 1.先在任务管理器中关掉所有virtualBox的进程,然后进入到C:\Users\Administrator\VirtualBox VMs\ 将相应guest的文件夹随便改个名字,再重 ...
- HDU-ACM“菜鸟先飞”冬训系列赛——第8场(1004)
Problem D Time Limit : 3000/3000ms (Java/Other) Memory Limit : 65535/102400K (Java/Other) Problem De ...
- bzoj 3110 [Zjoi2013]K大数查询【树套树||整体二分】
树套树: 约等于是个暴力了.以区间线段树的方式开一棵权值线段树,在权值线段树的每一个点上以动态开点的方式开一棵区间线段树. 结果非常惨烈(时限20s) #include<iostream> ...
- bzoj 4898: [Apio2017]商旅【Floyd+分数规划+二分】
其实并不会分数规划 因为要最大化 ans=总收益/总路程 ,所以考虑二分答案,找到一条 ans<=总收益/总路程 的回路.先预处理出d(i,j)为(i,j)最短路,w(i,j)为在i买某个物品在 ...
- 【OpenJ_Bailian - 2192】Zipper(dfs)
Zipper Descriptions: Given three strings, you are to determine whether the third string can be forme ...
- springboot(十一)SpringBoot任务
github地址: https://github.com/showkawa/springBoot_2017/tree/master/spb-demo/spb-brian-query-service 1 ...
- (博弈论 高精度小数)51NOD 1185 威佐夫游戏 V2
有2堆石子.A B两个人轮流拿,A先拿.每次可以从一堆中取任意个或从2堆中取相同数量的石子,但不可不取.拿到最后1颗石子的人获胜.假设A B都非常聪明,拿石子的过程中不会出现失误.给出2堆石子的数量, ...
- Jedis线上的一个小坑:Redis有并发访问的数据错乱的问题
问题现象: 业务数据有错乱,A的一些数据有好几个都是B的数据 这些业务数据在保存在Redis缓存中,怀疑是并发情况下Jedis错乱的问题 原因分析: JedisUtil里面在使用完Jedis 后释放资 ...
- Vue父子组件传值之——访问根组件$root、$parent、$children和$refs
Vue组件传值除了prop和$emit,我们还可以直接获取组件对象: 根组件: $root // 单一对象 表示当前组件树的根 Vue 实例,即new Vue({...根组件内容}).如果当前实例没有 ...
- logstash | logstash && logstash-input-jdbc 安装
Windows系统: 1.安装Logstash 1.1 进入官网下载zip包 [1] https://artifacts.elastic.co/ ...