增加一个尺寸大小为 64 的锚,使 Faster R-CNN 有 12 个锚。
1、 py-faster-rcnn/lib/rpn/proposal_layer.py
第 29 行:(‘scale’,(4, 8, 16, 32))
2、 py-faster-rcnn/lib/rpn/anchor_target_layer.py
第 28 行:(‘scale’,(4, 8, 16, 32))
3、 py-faster-rcnn/lib/rpn/generate_anchors.py
第 38 行:arange(2,6)
原始为(3,6)表示上面的 scale 是从 2 的三次方一直到 5 次,现在
表示 2 的平方一直到 5 次。
4、 py-faster-rcnn/models/pascal_voc/ZF/faster_rcnn_alt_opt/faster_rc
nn_test.pt
以 及 在 该 文 件 夹 中 除 solver 以 外 所 有 文 件 都 是 如
faster_rcnn_test.pt 这样更改
layer:name:”rpn_cls_score”中
num_output:24 #2(bg/fg) * 12(anchors)
layer:name:”rpn_bbox_pred”中
num_output:48 #4 * 12(anchors)
layer:name:”rpn_cls_prob_reshape”中(只在个别文件中存在)
shape{dim:0 dim:24 dim:-1 dim:0}