RON代码配置运行

论文RON:Reverse Connection with Objectness  Prior Networks for Object Detection 是 CVPR2017的一篇目标检测的论文,作者是孔涛,共享了源代码,下面把配置过程记录一下。

1、https://github.com/taokong/RON 

参考安装指南

2、git clone https://github.com/taokong/caffe-ron.git

在根目录使用命令      make -j16   出现错误。主要是gcc的版本不对,之前是4.7的。

 

如果出现hdf5.h文件找不到的情况,修改文件 makefile.config 。

INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial

 

使用命令 

sudo update-alternatives --config gcc  切换版本gcc or g++

 

 

3 运行 test 时出现错误

删除原来的annots.pkl文件。

rm data/VOCdevkit2007/annotations_cache/annots.pkl and run the program again.
You should also delete the roidb cache:
rm data/cache/voc_2007_trainval_gt_roidb.pkl

 

 4  运行成功。

 

posted @ 2017-07-12 21:10  闲云清烟  阅读(938)  评论(0编辑  收藏  举报