ssd 环境配置
来源:互联网 发布:网络女歌手唱的谁不是 编辑:程序博客网 时间:2024/06/08 07:23
ssd环境配置有好多坑。因为要编译pycaffe需要自己修改makefile.config的代码
如果没有错误了 则表示可以使用了
3. 修改环境变量
主要是因为之前只用了anaconda3,编译pycaffe之后,版本不太兼容()。
这里是caffe官网的原文
Caffe’s Python interface works with Python 2.7. Python 3.3+ should work out of the box without protobuf support. For protobuf support please install protobuf 3.0 alpha (https://developers.google.com/protocol-buffers/). Earlier Pythons are your own adventure
之后重新装了anaconda2
这里觉得比较保险的配置过程是先编译caffe
再使用指令验证是否能正常加载Python库
import caffe
如果没有错误了 则表示可以使用了
值得一提的是使用makefile.config
1. 修改一下CUDA的编译选项
#CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \#-gencode arch=compute_20,code=sm_21 \#-gencode arch=compute_30,code=sm_30 \#-gencode arch=compute_35,code=sm_35 \#-gencode arch=compute_50,code=sm_50 \#-gencode arch=compute_52,code=sm_52 \#-gencode arch=compute_60,code=sm_60 \#-gencode arch=compute_61,code=sm_61 \#-gencode arch=compute_61,code=compute_61CUDA_ARCH := -gencode arch=compute_30,code=sm_30
# NOTE: this is required only if you will compile the python interface.# We need to be able to find Python.h and numpy/arrayobject.h.# PYTHON_INCLUDE := /usr/include/python2.7 \# /usr/lib/python2.7/dist-packages/numpy/core/include# Anaconda Python distribution is quite popular. Include path:# Verify anaconda location, sometimes it's in root.ANACONDA_HOME := $(HOME)/anaconda2PYTHON_INCLUDE := $(ANACONDA_HOME)/include \$(ANACONDA_HOME)/include/python2.7 \$(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include# Uncomment to use Python 3 (default is Python 2)# PYTHON_LIBRARIES := boost_python3 python3.5m# PYTHON_INCLUDE := /usr/include/python3.5m \# /usr/lib/python3.5/dist-packages/numpy/core/include# We need to be able to find libpythonX.X.so or .dylib.# PYTHON_LIB := /usr/libPYTHON_LIB := $(ANACONDA_HOME)/lib
3. 修改环境变量
gedit ~/.bashrc
#caffe path#export PYTHONPATH=/home/billbliss/caffe/python:$PYTHONPATH
接下来也是一样的方式配置ssd-caffe
使用makefile.config
1. 修改一下CUDA的编译选项
2. 修改python库的编译 指向anaconda
3. 修改环境变量#ssd pathexport PYTHONPATH=/home/billbliss/ssd/caffe/python:$PYTHONPATH
阅读全文
0 0
- ssd 环境配置
- ubuntu14.04配置SSD物体识别检测环境运行demo
- SSD的配置安装
- caffe windows10 ssd配置
- SSD windows版本配置
- SSD linux下配置
- 配置caffe-SSD
- ubuntu+SSD配置安装
- SSD(based on Caffe)环境配置——by 蠢鱼
- Windows-SSD配置与测试
- SSD的配置及运行
- SSD的配置及运行
- SSD的配置及运行
- Caffe SSD 配置与安装
- 深度学习caffe-SSD配置
- [配置SSD进行目标检测]
- ssd
- SSD
- 机房个人重构之原型图、ER图(下)
- noisejs学习
- scp后台
- UglifyJS
- CentOS7 Hbase-1.3.1 单机部署
- ssd 环境配置
- mybatis 笔记
- apache + mod_wsgi + flask 搭建过程
- Kotlin最简单的入门教程——神秘的Lambda
- lua中集合的操作
- 第三章 SpringMVC--DispatcherServlet详解
- 2017/6/15技术总结(little_tiff_processor)
- 获取system的打印信息
- Kotlin最简单的入门教程——集合