github:https://github.com/unsky/FPN
由于是在faster-rcnn基础上进行的,但是作者写的install不太详细,其中有些小修改,记录下:
1.
github上写的cd lib 是cd /FPN/lib 而不是cd build/lib
2.
数据集和Makefile.config根据faster进行修改和下载,在FPN/experiments/下如果没有logs文件夹新建
3.
make test#运行报错:src/caffe/test/test_smooth_L1_loss_layer.cpp:11:35: fatal error: caffe/vision_layers.hpp
找到文件caffe-fpn/src/caffe/test/test_smooth_L1_loss_layer.cpp
删除第十一行 #include "caffe/vision_layers.hpp"
4.
.sh文件不能用tab键自动补充:
chmod a+x *.sh
后面如果还有Permission denied 像.py 文件,同样做法
chmod a+x *.py
5.
File "/home/llvision/ssd_xue/FPN/tools/../lib/rpn/proposal_target_layer.py", line 241, in _get_bbox_regression_labels
bbox_targets[ind, start:end] = bbox_target_data[ind, 1:]
TypeError: slice indices must be integers or None or have an __index__ method
找到文件位置,强制转换int类型
6.
File "mtrand.pyx", line 1187, in mtrand.RandomState.choice
TypeError: 'numpy.float64' object cannot be interpreted as an index
python -c "import numpy;print numpy.version.version"#查看numpy版本,修改为1.11.0
sudo pip install -U numpy==1.11.0