FPN环境配置

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 


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值