ppyolo_eb_voc.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. architecture: YOLOv3
  2. use_gpu: true
  3. max_iters: 70000
  4. log_smooth_window: 20
  5. save_dir: output
  6. snapshot_iter: 3000
  7. metric: VOC
  8. map_type: integral
  9. pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNet34_vd_pretrained.tar
  10. weights: output/ppyolo_eb_voc/best_model
  11. num_classes: 20
  12. use_fine_grained_loss: true
  13. log_iter: 1000
  14. use_ema: true
  15. ema_decay: 0.9998
  16. YOLOv3:
  17. backbone: ResNet_EB
  18. yolo_head: EBHead
  19. ResNet_EB:
  20. norm_type: sync_bn
  21. freeze_at: 0
  22. freeze_norm: false
  23. norm_decay: 0.
  24. depth: 34
  25. variant: d
  26. feature_maps: [3, 4, 5]
  27. EBHead:
  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. yolo_loss: YOLOv3Loss
  34. nms:
  35. background_label: -1
  36. keep_top_k: 100
  37. nms_threshold: 0.45
  38. nms_top_k: 1000
  39. normalized: false
  40. score_threshold: 0.01
  41. YOLOv3Loss:
  42. ignore_thresh: 0.7
  43. label_smooth: false
  44. use_fine_grained_loss: true
  45. iou_loss: IouLoss
  46. IouLoss:
  47. loss_weight: 2.5
  48. max_height: 608
  49. max_width: 608
  50. LearningRate:
  51. base_lr: 0.001
  52. schedulers:
  53. - !PiecewiseDecay
  54. gamma: 0.1
  55. milestones:
  56. - 35000
  57. - 60000
  58. - !LinearWarmup
  59. start_factor: 0.
  60. steps: 4000
  61. OptimizerBuilder:
  62. optimizer:
  63. momentum: 0.9
  64. type: Momentum
  65. regularizer:
  66. factor: 0.0005
  67. type: L2
  68. _READER_: 'ppyolo_reader.yml'
  69. TrainReader:
  70. dataset:
  71. !VOCDataSet
  72. dataset_dir: dataset/voc
  73. anno_path: trainval.txt
  74. use_default_label: false
  75. with_background: false
  76. mixup_epoch: 200
  77. batch_size: 8
  78. EvalReader:
  79. inputs_def:
  80. image_shape: [3, 608, 608]
  81. fields: ['image', 'im_size', 'im_id', 'gt_bbox', 'gt_class', 'is_difficult']
  82. num_max_boxes: 50
  83. dataset:
  84. !VOCDataSet
  85. dataset_dir: dataset/voc
  86. anno_path: test.txt
  87. use_default_label: false
  88. with_background: false
  89. TestReader:
  90. dataset:
  91. !ImageFolder
  92. use_default_label: false
  93. with_background: false