SSD是一个基于单网络的目标检测框架,它是基于caffe实现的,所以下面的教程是基于已经编译好的caffe进行编译的。 caffe的编译可以参考官网 caffe Installation

Installation

1.Get the code.

git clone https://github.com/weiliu89/caffe.git    (这里会得到一个caffe目录,为了和我们之前的caffe区分,我们下面对其重命名)
mv caffe caffe-ssd
cd caffe-ssd
git checkout ssd

2.Build the code.

从之前编译好的caffe目录中(我安装在/下),拷贝Makefile.config到caffe-ssd(我安装在/)中:

cp ~/caffe/Makefile.config ~/caffe-ssd/

编译之前需要修改配置文件:

1.首先添加caffe中的python到python环境变量中(PYTHONPATH),在.bash_profile里添加:

export PYTHONPATH=$PYTHONPATH:~/caffe/python

2.在.bash_profile 下面 添加共享blas库的路径(我安装在~/下),以及共享cuda的路径

export LD_LIBRARY_PATH=~/OpenBLAS/lib/
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64"
export CUDA_HOME=/usr/local/cuda

3.使修改文件生效

source  .bash_profile

4.在caffe-ssd下编译

make -j8
make py
make test -j8
make runtest -j8

说明

如果编译之前,不做第2步的话,可能出现一下错误:

.build_release/tools/caffe

.build_release/tools/caffe: error while loading shared libraries: libcudart.so.7.5: cannot open shared object file: No such file or directory

make: *** [runtest] Error 127

.build_release/tools/caffe

.build_release/tools/caffe: error while loading shared libraries: libopenblas.so.0: cannot open shared object file: No such file or directory

make: *** [runtest] Error 127

参考

SSD: Single Shot MultiBox Detector Installation

最新文章

  1. Daily Scrum Meeting ——SecondDay(Beta)12.10
  2. ORA-12637解决问题
  3. Centos apache + mysql + usvn 配置svn 服务器
  4. C#多线程网摘 2
  5. HttpModule生命周期示意图
  6. C#文件复制功能
  7. linux 访问tomcat 管理页面时 You are not authorized to view this page 403(真实可用)
  8. (PowerShell) Managing Windows Registry
  9. C#集合之Hashtable
  10. Ecmall系统自带的分页功能
  11. windows系统下搭建linux
  12. [jQuery1.9]Cannot read property ‘msie’ of undefined错误的解决方法
  13. c++趣味之为变参模板的每个参数执行单独函数
  14. Java 面试知识点解析(三)——JVM篇
  15. 如何让vue自定义组件可以包裹内容,并且渲染出来,以及组件的组合使用
  16. 使用ML.NET预测纽约出租车费
  17. Docker镜像中的base镜像理解
  18. Redis学习之路(003)- hiredis安装及测试
  19. 通过ReentrantLock简单了解下并发包中的锁
  20. 微软 WCF的几种寄宿方式,寄宿IIS、寄宿winform、寄宿控制台、寄宿Windows服务

热门文章

  1. MVC Model验证疑难杂症
  2. iOS Xcode之SVN(remove git)
  3. java上传图片,把图片存到本地
  4. centos6.5上搭建gitlab服务器(亲测可用哦)
  5. 密码验证连续多位相同或者顺序字符引发的思考.md
  6. Exchange Version and UpdateRollups
  7. Contos更换python版本
  8. learnyou 相关网站
  9. HttpSession 入门
  10. mongoose连接数据库的两种形式