pedestrian_yolov3_darknet.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. architecture: YOLOv3
  2. use_gpu: true
  3. max_iters: 200000
  4. log_iter: 20
  5. save_dir: output
  6. snapshot_iter: 5000
  7. metric: COCO
  8. pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/DarkNet53_pretrained.tar
  9. weights: https://paddlemodels.bj.bcebos.com/object_detection/pedestrian_yolov3_darknet.tar
  10. num_classes: 1
  11. use_fine_grained_loss: false
  12. YOLOv3:
  13. backbone: DarkNet
  14. yolo_head: YOLOv3Head
  15. DarkNet:
  16. norm_type: sync_bn
  17. norm_decay: 0.
  18. depth: 53
  19. YOLOv3Head:
  20. anchor_masks: [[6, 7, 8], [3, 4, 5], [0, 1, 2]]
  21. anchors: [[10, 13], [16, 30], [33, 23],
  22. [30, 61], [62, 45], [59, 119],
  23. [116, 90], [156, 198], [373, 326]]
  24. norm_decay: 0.
  25. yolo_loss: YOLOv3Loss
  26. nms:
  27. background_label: -1
  28. keep_top_k: 100
  29. nms_threshold: 0.45
  30. nms_top_k: 1000
  31. normalized: false
  32. score_threshold: 0.01
  33. YOLOv3Loss:
  34. batch_size: 8
  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. - 150000
  44. - 180000
  45. - !LinearWarmup
  46. start_factor: 0.
  47. steps: 4000
  48. OptimizerBuilder:
  49. optimizer:
  50. momentum: 0.9
  51. type: Momentum
  52. regularizer:
  53. factor: 0.0005
  54. type: L2
  55. _READER_: '../../configs/yolov3_reader.yml'
  56. TrainReader:
  57. batch_size: 8
  58. dataset:
  59. !COCODataSet
  60. dataset_dir: dataset/pedestrian
  61. anno_path: annotations/instances_train2017.json
  62. image_dir: train2017
  63. with_background: false
  64. EvalReader:
  65. batch_size: 8
  66. dataset:
  67. !COCODataSet
  68. dataset_dir: dataset/pedestrian
  69. anno_path: annotations/instances_val2017.json
  70. image_dir: val2017
  71. with_background: false
  72. TestReader:
  73. batch_size: 1
  74. dataset:
  75. !ImageFolder
  76. anno_path: contrib/PedestrianDetection/pedestrian.json
  77. with_background: false