Caffe Python接口编译
来源:互联网 发布:2017网络用语及解释 编辑:程序博客网 时间:2024/04/28 07:39
1.安装python:
yum install python-devel.x86_64
2.Makefile.config修改
WITH_PYTHON_LAYER := 1 #取消注释
3.安装python依赖
如果安装 Anaconda Python可以免去下面步骤
cd $CAFFE_ROOT/pythonfor req in $(cat requirements.txt); do pip install $req; done
4.编译
make cleanmake pycaffe -j32make test -j32
5. 使Caffe的python接口永久生效
vim /etc/profileprofile最后添加: export PYTHONPATH=/root/$CAFFE_ROOT/python:$PYTHONPATHsource /etc/profile
注意:
有一些python库没有安装,在import caffe测试时会出错,常见的库缺失错误:
ImportError: No module named skimage.io
ImportError: No module named scipy
ImportError: No module named google.protobuf.internal
yum install python-matplotlib.x86_64pip install -U scikit-image
pip install scipyeasy_install protobuf
安装完成上述caffe依赖的python库后,可能需要重新执行一遍第4,5步操作。
阅读全文
0 0
- Caffe Python接口编译
- caffe python接口编译
- 编译Caffe 的 Python 接口
- Windows 版caffe 的python接口编译
- caffe-windows cpu下编译python接口/matlab接口
- caffe 编译 matlab 接口
- 在Windows下编译Caffe与其Python接口
- caffe配置之编译python和MATLAB接口
- 在Windows下编译Caffe的Python接口
- Caffe(仅CPU)配置+编译+python接口
- Caffe的Python接口
- caffe python 接口使用
- Caffe的Python接口
- caffe---python接口配置
- caffe python接口:mnist
- caffe配置python接口
- Caffe Python接口
- Caffe源码编译,win10+vs2015+Ninja,C++接口测试(mnist),Python接口测试(mnist),(坑爹篇)
- xcode反汇编调试iOS模拟器程序(三)查看Objective-C函数与参数
- java的BIO,NIO,AIO的区别和用法
- groupby数据分析
- 解题报告:CodeForces 367B Sereja ans Anagrams
- Hive学习之抽样(Sampling)
- Caffe Python接口编译
- ubuntu+opencv+codeblocks建立工程文件
- 第一次面试
- 【bzoj2957】【楼房重建】另类的线段树(浅尝ACM-H)
- Jquery Post提交JSON主从关系对象数组到服务器
- Boost智能指针——scoped_ptr
- 实现单行、多行文本自动隐藏及显示省略号
- 在java中使用Mysq数据库遇到的一些问题
- [bzoj] 1073: [SCOI2007]kshort