ubuntu14.04配置faster-rcnn
来源:互联网 发布:知乎 小山庆一郎 编辑:程序博客网 时间:2024/05/16 18:55
1 首先要保证安装了cython, python-opencv, easydict,如果没有请执行以下命令:
sudo apt-get install cython
sudo apt-get install python-opencv
cd $FRCN_ROOT/lib
cd $FRCN_ROOT/caffe-fast-rcnn
cp Makefile.config.example Makefile.config
make pycaffe -j16
环境配置就结束了,下面就是下载模型进行demo测试
5 Download pre-computed Faster R-CNN detectors
cd $FRCN_ROOT
./data/scripts/fetch_faster_rcnn_models.sh
(可能下载的比较慢,你可以打开data/scripts/fetch_faster_rcnn_models.sh文件,里面有网址,直接去网址下载可能会快一点,顺便将ImageNet models也下载,后面训练要用)
sudo apt-get install cython
sudo apt-get install python-opencv
sudo pip install easydict
git clone --recursive https://github.com/rbgirshick/py-faster-rcnn.git
cd $FRCN_ROOT/lib
make -j16
cd $FRCN_ROOT/caffe-fast-rcnn
cp Makefile.config.example Makefile.config
打开 USE_CUDNN = 1,这个选项默认情况下时关闭的,让CUDA支持DNN(我没做)
打开 WITH_PYTHON_LAYER = 1,这个在默认情况下也是关闭的,FastRCNN需要支持Python接口,因此需要打开
Fast RCNN需要hdf5的支持,这个根据自己的Linux里的库文件安装路径添加,不清楚的可以find一下,不过一般情况下,INCLUDE_DIRS 应该添加上/usr/include/hdf5/serial LIBRARY_DIRS 添加上 /usr/lib/x86_x64-linux-gnu/hdf5/serial (我没做)
另外把USE_PKG_CONFIG = 1 记得打开,要不然会找不到一些库文件,PKG是linux用来管理库文件
make pycaffe -j16
环境配置就结束了,下面就是下载模型进行demo测试
5 Download pre-computed Faster R-CNN detectors
cd $FRCN_ROOT
./data/scripts/fetch_faster_rcnn_models.sh
(可能下载的比较慢,你可以打开data/scripts/fetch_faster_rcnn_models.sh文件,里面有网址,直接去网址下载可能会快一点,顺便将ImageNet models也下载,后面训练要用)
6 To run the demo
先在demo.py里加入
import sys
sys.path.append('/home/zc/faster-rcnn/py-faster-rcnn/lib')
之后
./tools/demo.py
遇到的报错
ImportError: cannot import name symbol_database
sudo pip install --upgrade protobufImportError: No module named yaml
sudo apt-get install Python-yaml
0 0
- ubuntu14.04配置faster-rcnn
- Ubuntu14.04配置Faster-RCNN
- faster-RCNN环境配置(Ubuntu14.04)
- faster-rcnn+ubuntu14.04+matlab2014a+cpu配置
- Ubuntu14.04+cuda7.5+opencv2.4.13+caffe+faster-rcnn 配置
- py-faster-rcnn配置运行demo.py(Ubuntu14.04)
- ubuntu14.04 faster-rcnn GPU环境配置(1)
- ubuntu14.04 faster-rcnn GPU环境配置(2)
- py-faster-rcnn配置运行faster_rcnn_end2end—VGG_CNN_M_1024(Ubuntu14.04)
- py-faster-rcnn配置运行faster_rcnn_end2end—VGG_CNN_M_1024(Ubuntu14.04)
- faster-rcnn安装配置,训练自己的数据,MATLAB,Ubuntu14
- ubuntu14.04安装CPU版caffe以及py-faster-rcnn
- ubuntu14.04、CPU的py-faster-rcnn安装步骤
- ubuntu14.04+faster-rcnn+matlab+cuda8.0
- ubuntu16.04配置py-faster-rcnn
- Ubuntu16.04配置运行faster rcnn
- faster-rcnn CUDA配置
- faster rcnn配置注意事项
- Tab切换
- 如何建立本地Ubuntu安装源
- Android动态添加TextView
- jdbc(RowSet离线结果集)
- xCAT裸机部署
- ubuntu14.04配置faster-rcnn
- c++ builder 按钮BitBtn实现只打开文件夹
- 构建高可用、高性能的 GPFS 集群
- 在CDockablePane中嵌入对话框
- CentOS 安装 JDK
- Android中Parcelable接口
- vt-x is disabled in the bios
- Keepalived+mysql实现mysql自动切换
- 【测试入门序列】持续集成与Jenkins