ppyoloe_crn_l_36e_coco_xpu.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. _BASE_: [
  2. '../datasets/coco_detection.yml',
  3. '../runtime.yml',
  4. './_base_/optimizer_36e_xpu.yml',
  5. './_base_/ppyoloe_reader.yml',
  6. ]
  7. # note: these are default values (use_gpu = true and use_xpu = false) for CI.
  8. # set use_gpu = false and use_xpu = true for training.
  9. use_gpu: true
  10. use_xpu: false
  11. log_iter: 100
  12. snapshot_epoch: 1
  13. weights: output/ppyoloe_crn_l_36e_coco/model_final
  14. find_unused_parameters: True
  15. pretrain_weights: https://paddledet.bj.bcebos.com/models/pretrained/CSPResNetb_l_pretrained.pdparams
  16. depth_mult: 1.0
  17. width_mult: 1.0
  18. TrainReader:
  19. batch_size: 8
  20. architecture: YOLOv3
  21. norm_type: sync_bn
  22. use_ema: true
  23. ema_decay: 0.9998
  24. ema_black_list: ['proj_conv.weight']
  25. custom_black_list: ['reduce_mean']
  26. YOLOv3:
  27. backbone: CSPResNet
  28. neck: CustomCSPPAN
  29. yolo_head: PPYOLOEHead
  30. post_process: ~
  31. CSPResNet:
  32. layers: [3, 6, 6, 3]
  33. channels: [64, 128, 256, 512, 1024]
  34. return_idx: [1, 2, 3]
  35. use_large_stem: True
  36. CustomCSPPAN:
  37. out_channels: [768, 384, 192]
  38. stage_num: 1
  39. block_num: 3
  40. act: 'swish'
  41. spp: true
  42. PPYOLOEHead:
  43. fpn_strides: [32, 16, 8]
  44. grid_cell_scale: 5.0
  45. grid_cell_offset: 0.5
  46. static_assigner_epoch: 4
  47. use_varifocal_loss: True
  48. loss_weight: {class: 1.0, iou: 2.5, dfl: 0.5}
  49. static_assigner:
  50. name: ATSSAssigner
  51. topk: 9
  52. assigner:
  53. name: TaskAlignedAssigner
  54. topk: 13
  55. alpha: 1.0
  56. beta: 6.0
  57. nms:
  58. name: MultiClassNMS
  59. nms_top_k: 1000
  60. keep_top_k: 300
  61. score_threshold: 0.01
  62. nms_threshold: 0.7