ppyolov2_r101vd_dcn.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. architecture: YOLOv3
  2. use_gpu: true
  3. max_iters: 450000
  4. log_iter: 100
  5. save_dir: output
  6. snapshot_iter: 10000
  7. metric: COCO
  8. pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_vd_ssld_pretrained.tar
  9. weights: output/ppyolov2_r101vd_dcn/model_final
  10. num_classes: 80
  11. use_fine_grained_loss: true
  12. use_ema: true
  13. ema_decay: 0.9998
  14. YOLOv3:
  15. backbone: ResNet
  16. yolo_head: YOLOv3PANHead
  17. use_fine_grained_loss: true
  18. ResNet:
  19. norm_type: sync_bn
  20. freeze_at: 0
  21. freeze_norm: false
  22. norm_decay: 0.
  23. depth: 101
  24. feature_maps: [3, 4, 5]
  25. variant: d
  26. dcn_v2_stages: [5]
  27. YOLOv3PANHead:
  28. anchor_masks: [[6, 7, 8], [3, 4, 5], [0, 1, 2]]
  29. anchors: [[10, 13], [16, 30], [33, 23],
  30. [30, 61], [62, 45], [59, 119],
  31. [116, 90], [156, 198], [373, 326]]
  32. norm_decay: 0.
  33. iou_aware: true
  34. iou_aware_factor: 0.5
  35. scale_x_y: 1.05
  36. spp: true
  37. yolo_loss: YOLOv3Loss
  38. nms: MatrixNMS
  39. drop_block: true
  40. YOLOv3Loss:
  41. ignore_thresh: 0.7
  42. scale_x_y: 1.05
  43. label_smooth: false
  44. use_fine_grained_loss: true
  45. iou_loss: IouLoss
  46. iou_aware_loss: IouAwareLoss
  47. IouLoss:
  48. loss_weight: 2.5
  49. max_height: 768
  50. max_width: 768
  51. IouAwareLoss:
  52. loss_weight: 1.0
  53. max_height: 768
  54. max_width: 768
  55. MatrixNMS:
  56. background_label: -1
  57. keep_top_k: 100
  58. normalized: false
  59. score_threshold: 0.01
  60. post_threshold: 0.01
  61. LearningRate:
  62. base_lr: 0.005
  63. schedulers:
  64. - !PiecewiseDecay
  65. gamma: 0.1
  66. milestones:
  67. - 300000
  68. - !LinearWarmup
  69. start_factor: 0.
  70. steps: 4000
  71. OptimizerBuilder:
  72. clip_grad_by_norm: 35.
  73. optimizer:
  74. momentum: 0.9
  75. type: Momentum
  76. regularizer:
  77. factor: 0.0005
  78. type: L2
  79. _READER_: 'ppyolov2_reader.yml'