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相对来说就是基于局部图像 ...
随机推荐
- SQLite数据库框架--FMDB简单介绍
1.什么是FMDB FMDB是iOS平台的SQLite数据库框架 FMDB以OC的方式封装了SQLite的C语言API 2.FMDB的优点 使用起来更加面向对象,省去了很多麻烦.冗余的C语言代码 对比 ...
- C# QRCode 二维码
/*********************************************************************** * C# QRCode 二维码 * 说明: * 本文记 ...
- ThinkPHP3.2.3学习笔记2---模型
一.模型实例化1.直接实例化可以和实例化其他类库一样实例化模型类,例如:$User = new \Home\Model\UserModel();$Info = new \Admin\Model\Inf ...
- bzoj 2111: [ZJOI2010]Perm 排列计数【树形dp+lucas】
是我想复杂了 首先发现大于关系构成了一棵二叉树的结构,于是树形dp 设f[i]为i点的方案数,si[i]为i点的子树大小,递推式是\( f[i]=f[i*2]*f[i*2+1]*C_{si[i]-1} ...
- 升级Python后, yum不能用了
yum需要使用python2,而升级python3后,就会导致语法错误 更正方法: sudo vim /usr/bin/yum 然后把第一行的python改成python2就好了 之后如果出现类似的, ...
- 安装privoxy后curl 操作
如果讲privoxy服务关掉 sudo /etc/init.d/privoxy restart 这时候发现 curl www.baidu.com 也没法正常工作,直接显示的是无法连接到相应端口还是 主 ...
- pytest特色与实用插件
pytest特色 1.fixture的特点 fixture是pytest特有的功能,其特点如下: 必须用pytest.fixture装饰器装饰:fixture有明确的名字,在其他函数(function ...
- XML 基础学习
在w3school看到了XML的教程,想到以前工作学习中也接触到了XML,但只是简单搜索了解了下,没有认真去学习XML的基础,所以现在认真看下其基础部分,并写篇博客作为笔记记录下. XML 简介 XM ...
- ACM二分查找模板
int main(){ == key int m; while ( l <= r ) { m = ( l + r ) >> 1; if ( x[m] == key ) return ...
- uwp选取文件夹并读取其中的图片
uwp对文件的操作和wpf,winform等等有很大的不同,主要原因是uwp对权限的要求比较严格,不能想从前那样随心所欲的读取文件. 1.首先找到Package.appxmanifest这个文件,在功 ...