retinanet_r101_fpn_1x.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. architecture: RetinaNet
  2. max_iters: 90000
  3. use_gpu: true
  4. pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_pretrained.tar
  5. weights: output/retinanet_r101_fpn_1x/model_final
  6. log_iter: 20
  7. snapshot_iter: 10000
  8. metric: COCO
  9. save_dir: output
  10. num_classes: 81
  11. RetinaNet:
  12. backbone: ResNet
  13. fpn: FPN
  14. retina_head: RetinaHead
  15. ResNet:
  16. norm_type: affine_channel
  17. norm_decay: 0.
  18. depth: 101
  19. feature_maps: [3, 4, 5]
  20. freeze_at: 2
  21. FPN:
  22. max_level: 7
  23. min_level: 3
  24. num_chan: 256
  25. spatial_scale: [0.03125, 0.0625, 0.125]
  26. has_extra_convs: true
  27. RetinaHead:
  28. num_convs_per_octave: 4
  29. num_chan: 256
  30. max_level: 7
  31. min_level: 3
  32. prior_prob: 0.01
  33. base_scale: 4
  34. num_scales_per_octave: 3
  35. anchor_generator:
  36. aspect_ratios: [1.0, 2.0, 0.5]
  37. variance: [1.0, 1.0, 1.0, 1.0]
  38. target_assign:
  39. positive_overlap: 0.5
  40. negative_overlap: 0.4
  41. gamma: 2.0
  42. alpha: 0.25
  43. sigma: 3.0151134457776365
  44. output_decoder:
  45. score_thresh: 0.05
  46. nms_thresh: 0.5
  47. pre_nms_top_n: 1000
  48. detections_per_im: 100
  49. nms_eta: 1.0
  50. LearningRate:
  51. base_lr: 0.01
  52. schedulers:
  53. - !PiecewiseDecay
  54. gamma: 0.1
  55. milestones: [60000, 80000]
  56. - !LinearWarmup
  57. start_factor: 0.3333333333333333
  58. steps: 500
  59. OptimizerBuilder:
  60. optimizer:
  61. momentum: 0.9
  62. type: Momentum
  63. regularizer:
  64. factor: 0.0001
  65. type: L2
  66. _READER_: 'faster_fpn_reader.yml'
  67. TrainReader:
  68. batch_size: 2
  69. batch_transforms:
  70. - !PadBatch
  71. pad_to_stride: 128
  72. EvalReader:
  73. batch_size: 2
  74. batch_transforms:
  75. - !PadBatch
  76. pad_to_stride: 128
  77. TestReader:
  78. batch_size: 1
  79. batch_transforms:
  80. - !PadBatch
  81. pad_to_stride: 128