ppyolo_r18vd_coco.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. _BASE_: [
  2. '../datasets/coco_detection.yml',
  3. '../runtime.yml',
  4. './_base_/ppyolo_r18vd.yml',
  5. './_base_/optimizer_1x.yml',
  6. './_base_/ppyolo_reader.yml',
  7. ]
  8. snapshot_epoch: 10
  9. weights: output/ppyolo_r18vd_coco/model_final
  10. TrainReader:
  11. sample_transforms:
  12. - Decode: {}
  13. - Mixup: {alpha: 1.5, beta: 1.5}
  14. - RandomDistort: {}
  15. - RandomExpand: {fill_value: [123.675, 116.28, 103.53]}
  16. - RandomCrop: {}
  17. - RandomFlip: {}
  18. batch_transforms:
  19. - BatchRandomResize:
  20. target_size: [320, 352, 384, 416, 448, 480, 512, 544, 576, 608]
  21. random_size: True
  22. random_interp: True
  23. keep_ratio: False
  24. - NormalizeBox: {}
  25. - PadBox: {num_max_boxes: 50}
  26. - BboxXYXY2XYWH: {}
  27. - NormalizeImage:
  28. mean: [0.485, 0.456, 0.406]
  29. std: [0.229, 0.224, 0.225]
  30. is_scale: True
  31. - Permute: {}
  32. - Gt2YoloTarget:
  33. anchor_masks: [[3, 4, 5], [0, 1, 2]]
  34. anchors: [[10, 14], [23, 27], [37, 58], [81, 82], [135, 169], [344, 319]]
  35. downsample_ratios: [32, 16]
  36. batch_size: 32
  37. mixup_epoch: 500
  38. shuffle: true
  39. EvalReader:
  40. sample_transforms:
  41. - Decode: {}
  42. - Resize: {target_size: [512, 512], keep_ratio: False, interp: 2}
  43. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  44. - Permute: {}
  45. batch_size: 8
  46. TestReader:
  47. inputs_def:
  48. image_shape: [3, 512, 512]
  49. sample_transforms:
  50. - Decode: {}
  51. - Resize: {target_size: [512, 512], keep_ratio: False, interp: 2}
  52. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  53. - Permute: {}
  54. batch_size: 1
  55. epoch: 270
  56. LearningRate:
  57. base_lr: 0.004
  58. schedulers:
  59. - !PiecewiseDecay
  60. gamma: 0.1
  61. milestones:
  62. - 162
  63. - 216
  64. - !LinearWarmup
  65. start_factor: 0.
  66. steps: 4000
  67. OptimizerBuilder:
  68. optimizer:
  69. momentum: 0.9
  70. type: Momentum
  71. regularizer:
  72. factor: 0.0005
  73. type: L2