依赖项:

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实验环境搭建详细过程的更多相关文章

  1. Image Processing and Computer Vision_Review:Local Invariant Feature Detectors: A Survey——2007.11

    翻译 局部不变特征探测器:一项调查 摘要 -在本次调查中,我们概述了不变兴趣点探测器,它们如何随着时间的推移而发展,它们如何工作,以及它们各自的优点和缺点.我们首先定义理想局部特征检测器的属性.接下来 ...

  2. Learning local feature descriptors with triplets and shallow convolutional neural networks 论文阅读笔记

    题目翻译:学习 local feature descriptors 使用 triplets 还有浅的卷积神经网络.读罢此文,只觉收获满满,同时另外印象最深的也是一个浅(文章中会提及)字. 1 Cont ...

  3. Deep Learning 23:dropout理解_之读论文“Improving neural networks by preventing co-adaptation of feature detectors”

    理论知识:Deep learning:四十一(Dropout简单理解).深度学习(二十二)Dropout浅层理解与实现.“Improving neural networks by preventing ...

  4. Learning Spread-out Local Feature Descriptors

    论文Learning Spread-out Local Feature Descriptors 为什么介绍此文:引入了一种正则化手段,结合其他网络的损失函数,尤其是最新cvpr 2018的hardne ...

  5. 深度学习基础(四) Dropout_Improving neural networks by preventing co-adaptation of feature detectors

    该笔记是我快速浏览论文后的记录,部分章节并没有仔细看,所以比较粗糙. 从摘要中可以得知,论文提出在每次训练时通过随机忽略一半的feature detectors(units)可以极大地降低过拟合.该方 ...

  6. 论文笔记(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月份发表的,从这篇文章 ...

  7. 关于 Local feature 和 Global feature 的组合

     关于  Local feature 和 Global feature 的组合     1.全局上下文建模:  

  8. 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 作者在 ...

  9. local feature和global feature的理解

    在计算机视觉方面,global feature是基于整张图像提取的特征,也就是说基于all pixels,常见的有颜色直方图.形状描述子.GIST等:local feature相对来说就是基于局部图像 ...

随机推荐

  1. android:json解析的两个工具:Gson和Jackson的使用小例子

    1.简介 json是android与服务器通信过程中常用的数据格式,例如,如下是一个json格式的字符串: {"address":"Nanjing"," ...

  2. OpenMediaVault 搭建git,ssh无法连接问题

    /************************************************************************* * OpenMediaVault 搭建git,ss ...

  3. [Codeforces 545E] Paths and Trees

    [题目链接] https://codeforces.com/contest/545/problem/E [算法] 首先求 u 到所有结点的最短路 记录每个节点最短路径上的最后一条边         答 ...

  4. 手把手VirtualBox虚拟机下安装rhel6.4 linux位系统详细文档

    使用Virtual Box,感觉跟Vmware差不多,我的本子的系统是win7 64位. 下面演示安装的是在VirtualBox里安装rhel 6.4 linux 32位系统.32位系统安装和 64位 ...

  5. ACGAN 论文笔记

    <Conditional Image Synthesis With Auxiliary Classifier GANs> Odena A, Olah C, Shlens J. Condit ...

  6. Github个人主页不显示提交记录的问题

    最近发现自己连续三天在github上的提交没显示在个人主页上,一番搜索后终于发现原来是因为没有把git的配置改过来,提交的代码时使用了不同的email. https://code.bradymower ...

  7. linux更改用户名,域名(转载)

    转自:http://huangro.iteye.com/blog/365975 1. 我们在root权限下,使用命令: usermod -l new_user_name old_user_name 即 ...

  8. 洛谷P4374 [USACO18OPEN]Disruption(树链剖分+线段树)

    传送门 不难发现,每一条额外修的路径,会对原树上$(u,v)$路径上的所有边产生贡献 于是这就变成了一个路径修改 那么我们把每一条边赋值到它连接的两个点中深度较大的那个上面,然后每一次用树剖+线段树做 ...

  9. Reduction operations

    Reuction operations Reduction operations A reduction operations on a tensor is an operation that red ...

  10. RT-Thread 设备驱动ADC浅析与改进

    OS版本:RT-Thread 4.0.0 芯片:STM32F407 下面时官方ADC提供的参考访问接口 访问 ADC 设备 应用程序通过 RT-Thread 提供的 ADC 设备管理接口来访问 ADC ...