yolov3_darknet_voc.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. architecture: YOLOv3
  2. use_gpu: true
  3. max_iters: 70000
  4. log_iter: 20
  5. save_dir: output
  6. snapshot_iter: 2000
  7. metric: VOC
  8. map_type: 11point
  9. pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/DarkNet53_pretrained.tar
  10. weights: output/yolov3_darknet_voc/model_final
  11. num_classes: 20
  12. use_fine_grained_loss: false
  13. YOLOv3:
  14. backbone: DarkNet
  15. yolo_head: YOLOv3Head
  16. DarkNet:
  17. norm_type: sync_bn
  18. norm_decay: 0.
  19. depth: 53
  20. YOLOv3Head:
  21. anchor_masks: [[6, 7, 8], [3, 4, 5], [0, 1, 2]]
  22. anchors: [[10, 13], [16, 30], [33, 23],
  23. [30, 61], [62, 45], [59, 119],
  24. [116, 90], [156, 198], [373, 326]]
  25. norm_decay: 0.
  26. yolo_loss: YOLOv3Loss
  27. nms:
  28. background_label: -1
  29. keep_top_k: 100
  30. nms_threshold: 0.45
  31. nms_top_k: 1000
  32. normalized: false
  33. score_threshold: 0.01
  34. YOLOv3Loss:
  35. ignore_thresh: 0.7
  36. label_smooth: false
  37. LearningRate:
  38. base_lr: 0.001
  39. schedulers:
  40. - !PiecewiseDecay
  41. gamma: 0.1
  42. milestones:
  43. - 55000
  44. - 62000
  45. - !LinearWarmup
  46. start_factor: 0.
  47. steps: 1000
  48. OptimizerBuilder:
  49. optimizer:
  50. momentum: 0.9
  51. type: Momentum
  52. regularizer:
  53. factor: 0.0005
  54. type: L2
  55. _READER_: 'yolov3_reader.yml'
  56. TrainReader:
  57. inputs_def:
  58. fields: ['image', 'gt_bbox', 'gt_class', 'gt_score']
  59. num_max_boxes: 50
  60. dataset:
  61. !VOCDataSet
  62. dataset_dir: dataset/voc
  63. anno_path: trainval.txt
  64. use_default_label: true
  65. with_background: false
  66. EvalReader:
  67. inputs_def:
  68. fields: ['image', 'im_size', 'im_id', 'gt_bbox', 'gt_class', 'is_difficult']
  69. num_max_boxes: 50
  70. dataset:
  71. !VOCDataSet
  72. dataset_dir: dataset/voc
  73. anno_path: test.txt
  74. use_default_label: true
  75. with_background: false
  76. TestReader:
  77. dataset:
  78. !ImageFolder
  79. use_default_label: true
  80. with_background: false