faster_rcnn_r50.yml 1.2 KB
Newer Older
Q
qingqing01 已提交
1
architecture: FasterRCNN
2
pretrain_weights: https://paddledet.bj.bcebos.com/models/pretrained/ResNet50_cos_pretrained.pdparams
Q
qingqing01 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

FasterRCNN:
  backbone: ResNet
  rpn_head: RPNHead
  bbox_head: BBoxHead
  # post process
  bbox_post_process: BBoxPostProcess


ResNet:
  # index 0 stands for res2
  depth: 50
  norm_type: bn
  freeze_at: 0
  return_idx: [2]
  num_stages: 3

RPNHead:
  anchor_generator:
    aspect_ratios: [0.5, 1.0, 2.0]
23 24 25
    anchor_sizes: [32, 64, 128, 256, 512]
    strides: [16]
  rpn_target_assign:
Q
qingqing01 已提交
26 27 28 29
    batch_size_per_im: 256
    fg_fraction: 0.5
    negative_overlap: 0.3
    positive_overlap: 0.7
30 31
    use_random: True
  train_proposal:
Q
qingqing01 已提交
32 33
    min_size: 0.0
    nms_thresh: 0.7
34 35
    pre_nms_top_n: 12000
    post_nms_top_n: 2000
36
    topk_after_collect: False
37 38 39 40 41 42
  test_proposal:
    min_size: 0.0
    nms_thresh: 0.7
    pre_nms_top_n: 6000
    post_nms_top_n: 1000

Q
qingqing01 已提交
43 44

BBoxHead:
45 46 47 48 49 50
  head: Res5Head
  roi_extractor:
    resolution: 14
    sampling_ratio: 0
    aligned: True
  bbox_assigner: BBoxAssigner
Q
qingqing01 已提交
51 52
  with_pool: true

53 54
BBoxAssigner:
  batch_size_per_im: 512
W
wangguanzhong 已提交
55 56
  bg_thresh: 0.5
  fg_thresh: 0.5
57 58
  fg_fraction: 0.25
  use_random: True
Q
qingqing01 已提交
59 60

BBoxPostProcess:
61
  decode: RCNNBox
Q
qingqing01 已提交
62 63 64 65 66
  nms:
    name: MultiClassNMS
    keep_top_k: 100
    score_threshold: 0.05
    nms_threshold: 0.5