安装之前请详细阅读官方的文档
由于官方的文档给出了各个版本的安装需求和 config 文件的部分参数含义,不够仔细(当然所有的 config 参数含义都在该文件中有解释),这里我单独记录一下自己使用 Anaconda3 编译 caffe cpu 版的完整过程。
环境:
ubuntu 14.04
anaconda3
python3.5
编译版本:纯cpu版
1. 依赖
相关依赖库的安装参见官网给的链接:
2. 配置
修改配置文件如下:
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
# USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
# USE_OPENCV := 0
# USE_LEVELDB := 0
# USE_LMDB := 0
# uncomment to allow MDB_NOLOCK when reading LMDB files (only if necessary)
# You should not set this flag if you will be reading LMDBs with any
# possibility of simultaneous read and write
# ALLOW_LMDB_NOLOCK := 1
# Uncomment if you're using OpenCV 3
# OPENCV_VERSION := 3