ppyolo_voc.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. architecture: YOLOv3
  2. use_gpu: true
  3. max_iters: 70000
  4. log_smooth_window: 20
  5. log_iter: 20
  6. save_dir: output
  7. snapshot_iter: 10000
  8. metric: VOC
  9. pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_ssld_pretrained.tar
  10. weights: output/ppyolo/model_final
  11. num_classes: 20
  12. use_fine_grained_loss: true
  13. use_ema: true
  14. ema_decay: 0.9998
  15. YOLOv3:
  16. backbone: ResNet
  17. yolo_head: YOLOv3Head
  18. use_fine_grained_loss: true
  19. ResNet:
  20. norm_type: sync_bn
  21. freeze_at: 0
  22. freeze_norm: false
  23. norm_decay: 0.
  24. depth: 50
  25. feature_maps: [3, 4, 5]
  26. variant: d
  27. dcn_v2_stages: [5]
  28. YOLOv3Head:
  29. anchor_masks: [[6, 7, 8], [3, 4, 5], [0, 1, 2]]
  30. anchors: [[10, 13], [16, 30], [33, 23],
  31. [30, 61], [62, 45], [59, 119],
  32. [116, 90], [156, 198], [373, 326]]
  33. norm_decay: 0.
  34. coord_conv: true
  35. iou_aware: true
  36. iou_aware_factor: 0.4
  37. scale_x_y: 1.05
  38. spp: true
  39. yolo_loss: YOLOv3Loss
  40. nms: MatrixNMS
  41. drop_block: true
  42. YOLOv3Loss:
  43. ignore_thresh: 0.7
  44. scale_x_y: 1.05
  45. label_smooth: false
  46. use_fine_grained_loss: true
  47. iou_loss: IouLoss
  48. iou_aware_loss: IouAwareLoss
  49. IouLoss:
  50. loss_weight: 2.5
  51. max_height: 608
  52. max_width: 608
  53. IouAwareLoss:
  54. loss_weight: 1.0
  55. max_height: 608
  56. max_width: 608
  57. MatrixNMS:
  58. background_label: -1
  59. keep_top_k: 100
  60. normalized: false
  61. score_threshold: 0.01
  62. post_threshold: 0.01
  63. LearningRate:
  64. base_lr: 0.00333
  65. schedulers:
  66. - !PiecewiseDecay
  67. gamma: 0.1
  68. milestones:
  69. - 56000
  70. - 62000
  71. - !LinearWarmup
  72. start_factor: 0.
  73. steps: 4000
  74. OptimizerBuilder:
  75. optimizer:
  76. momentum: 0.9
  77. type: Momentum
  78. regularizer:
  79. factor: 0.0005
  80. type: L2
  81. _READER_: 'ppyolo_reader.yml'
  82. TrainReader:
  83. dataset:
  84. !VOCDataSet
  85. dataset_dir: dataset/voc
  86. anno_path: trainval.txt
  87. use_default_label: true
  88. with_background: false
  89. mixup_epoch: 350
  90. batch_size: 12
  91. EvalReader:
  92. inputs_def:
  93. fields: ['image', 'im_size', 'im_id', 'gt_bbox', 'gt_class', 'is_difficult']
  94. num_max_boxes: 50
  95. dataset:
  96. !VOCDataSet
  97. dataset_dir: dataset/voc
  98. anno_path: test.txt
  99. use_default_label: true
  100. with_background: false
  101. TestReader:
  102. dataset:
  103. !ImageFolder
  104. use_default_label: true
  105. with_background: false