faster_rcnn_r101_1x.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. architecture: FasterRCNN
  2. use_gpu: true
  3. max_iters: 180000
  4. log_iter: 20
  5. save_dir: output
  6. snapshot_iter: 10000
  7. pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_pretrained.tar
  8. metric: COCO
  9. weights: output/faster_rcnn_r101_1x/model_final
  10. num_classes: 81
  11. FasterRCNN:
  12. backbone: ResNet
  13. rpn_head: RPNHead
  14. roi_extractor: RoIAlign
  15. bbox_head: BBoxHead
  16. bbox_assigner: BBoxAssigner
  17. ResNet:
  18. norm_type: affine_channel
  19. depth: 101
  20. feature_maps: 4
  21. freeze_at: 2
  22. ResNetC5:
  23. depth: 101
  24. norm_type: affine_channel
  25. RPNHead:
  26. anchor_generator:
  27. anchor_sizes: [32, 64, 128, 256, 512]
  28. aspect_ratios: [0.5, 1.0, 2.0]
  29. stride: [16.0, 16.0]
  30. variance: [1.0, 1.0, 1.0, 1.0]
  31. rpn_target_assign:
  32. rpn_batch_size_per_im: 256
  33. rpn_fg_fraction: 0.5
  34. rpn_negative_overlap: 0.3
  35. rpn_positive_overlap: 0.7
  36. rpn_straddle_thresh: 0.0
  37. use_random: true
  38. train_proposal:
  39. min_size: 0.0
  40. nms_thresh: 0.7
  41. pre_nms_top_n: 12000
  42. post_nms_top_n: 2000
  43. test_proposal:
  44. min_size: 0.0
  45. nms_thresh: 0.7
  46. pre_nms_top_n: 6000
  47. post_nms_top_n: 1000
  48. RoIAlign:
  49. resolution: 14
  50. sampling_ratio: 0
  51. spatial_scale: 0.0625
  52. BBoxAssigner:
  53. batch_size_per_im: 512
  54. bbox_reg_weights: [0.1, 0.1, 0.2, 0.2]
  55. bg_thresh_hi: 0.5
  56. bg_thresh_lo: 0.0
  57. fg_fraction: 0.25
  58. fg_thresh: 0.5
  59. BBoxHead:
  60. head: ResNetC5
  61. nms:
  62. keep_top_k: 100
  63. nms_threshold: 0.5
  64. score_threshold: 0.05
  65. LearningRate:
  66. base_lr: 0.01
  67. schedulers:
  68. - !PiecewiseDecay
  69. gamma: 0.1
  70. milestones: [120000, 160000]
  71. - !LinearWarmup
  72. start_factor: 0.3333333333333333
  73. steps: 500
  74. OptimizerBuilder:
  75. optimizer:
  76. momentum: 0.9
  77. type: Momentum
  78. regularizer:
  79. factor: 0.0001
  80. type: L2
  81. _READER_: 'faster_reader.yml'