博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
如何在 centos 7.3 上安装 caffe 深度学习工具
阅读量:4598 次
发布时间:2019-06-09

本文共 1111 字,大约阅读时间需要 3 分钟。

 有好多朋友在安装 caffe 时遇到不少问题。(看文章的朋友希望关心一下我的创业项目趣智思成) 今天测试并整理一下安装过程。我是在阿里云上测试,选择centos 7.3 镜像。

先安装 epel 源

yum install epel-release

安装基本编译环境

yum install protobuf-devel leveldb-devel snappy-devel opencv-devel boost-devel hdf5-develyum install gflags-devel glog-devel lmdb-devel yum install atlas-devel #用默认的 atlas 有点问题,需要改为 openblas
yum install openblas-devel yum install python34-develyum install gityum groupinstall "Development Tools" "Development Libraries"

下载源代码

git clone https://github.com/BVLC/caffe

到源代码目录下执行

mv Makefile.config.example Makefile.config

修改配置文件 Makefile.config

所有不是#开头的都需要修改

# CPU-only switch (uncomment to build without GPU support).CPU_ONLY := 1# BLAS choice:# atlas for ATLAS (default)# mkl for MKL# open for OpenBlasBLAS := open   # Custom (MKL/ATLAS/OpenBLAS) include and lib directories.# Leave commented to accept the defaults for your choice of BLAS# (which should work)!# BLAS_INCLUDE := /path/to/your/blas#BLAS_LIB := /path/to/your/blasBLAS_INCLUDE := /usr/include/openblasBLAS_LIB := /usr/lib64

最后在 caffe 目录下运行:build。就完成了。有任何问题欢迎发在评论区。

 

转载于:https://www.cnblogs.com/flyhyp/p/7053223.html

你可能感兴趣的文章
SQL里的子查询
查看>>
Hdu5517 Triple
查看>>
vue 调用微信支付方法
查看>>
ABP创建应用服务
查看>>
混合模式程序集是针对“v2.0.50727”版的运行时生成的,在没有配置其他信息的情况下,无法在 4.0 运行时中加载该程序集。...
查看>>
Swift - 绘制背景线条
查看>>
POJ 2318
查看>>
HDU 1561 树形DP背包问题
查看>>
hdu1056
查看>>
避免js拼接页面的小技巧
查看>>
面试题(Spring)
查看>>
VS恢复默认设置
查看>>
BZOJ.3591.最长上升子序列(状压DP)
查看>>
JS - 局部方法改变全局变量的值
查看>>
Vue引入远程JS文件
查看>>
4067: [Ctsc2015]gender 动态规划 网络流
查看>>
Spring的Bean内部方法调用无法使用AOP切面(CacheAble注解失效)
查看>>
分布式事务之深入理解什么是2PC、3PC及TCC协议?
查看>>
Vim插件:Unite新手指导(译)
查看>>
pymysql实现MySQL与Python交互
查看>>