ubuntu 14.04下 caffe环境中 fast rcnn安装与运行

来源:互联网 发布:卷皮网淘宝客 编辑:程序博客网 时间:2024/05/21 06:40

ubuntu 14.04下 caffe环境中 fast rcnn安装与运行

   本文是在caffe安装完成后的基础上安装fast rcnn,可以参考Windows与linux下caffe配置(仅CPU)

    1.下载源码 

      git clone --recursive https://github.com/rbgirshick/fast-rcnn.git 
     2.生成Cython模块  

     cd /home/username/fast-rcnn/lib

     make
        username为安装ubuntu的用户名   

    cp Makefile.config.example Makefile.config
       打开Makefile.config修改如下:(与配置caffe一样)

           

           
           
          
          
       3.编译pycaffe         
        cd /home/username/fast-rcnn/caffe-fast-rcnn
        make  && make pycaffe
       4.下载fast_rcnn训练好的模型
       cd /home/username/fast-rcnn/data/scripts       ./ fetch_faster_rcnn_models.sh
           使用.sh下载,一般较慢,可以在这http://pan.baidu.com/s/1eRG8Geu 密码:clur下载,解压到fast-rcnn/data文件下即可
       5.运行deme.py       
       cd fast-rcnn/tools       ./demo.py或者./demo.py --cpu --net caffenet
       6.运行效果图如下: