ppyoloe_crn_t_p2_300e_coco.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. _BASE_: [
  2. '../datasets/coco_detection.yml',
  3. '../runtime.yml',
  4. './_base_/optimizer_300e.yml',
  5. './_base_/ppyoloe_crn.yml',
  6. './_base_/ppyoloe_reader.yml',
  7. ]
  8. log_iter: 100
  9. snapshot_epoch: 10
  10. weights: output/ppyoloe_crn_t_p2_300e_coco/model_final
  11. pretrain_weights: https://paddledet.bj.bcebos.com/models/pretrained/CSPResNetb_t_pretrained.pdparams
  12. depth_mult: 0.33
  13. width_mult: 0.375
  14. CSPResNet:
  15. return_idx: [0, 1, 2, 3]
  16. CustomCSPPAN:
  17. out_channels: [768, 384, 192, 96]
  18. PPYOLOEHead:
  19. fpn_strides: [32, 16, 8, 4]
  20. attn_conv: 'repvgg' #
  21. assigner:
  22. name: TaskAlignedAssigner
  23. topk: 13
  24. alpha: 1.0
  25. beta: 6.0
  26. is_close_gt: True #
  27. nms:
  28. name: MultiClassNMS
  29. nms_top_k: 1000
  30. keep_top_k: 300
  31. score_threshold: 0.01
  32. nms_threshold: 0.7
  33. worker_num: 4
  34. eval_height: &eval_height 320
  35. eval_width: &eval_width 320
  36. eval_size: &eval_size [*eval_height, *eval_width]
  37. TrainReader:
  38. sample_transforms:
  39. - Decode: {}
  40. - RandomDistort: {}
  41. - RandomExpand: {fill_value: [123.675, 116.28, 103.53]}
  42. - RandomCrop: {}
  43. - RandomFlip: {}
  44. batch_transforms:
  45. - BatchRandomResize: {target_size: [224, 256, 288, 320, 352, 384, 416, 448, 480, 512, 544], random_size: True, random_interp: True, keep_ratio: False}
  46. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  47. - Permute: {}
  48. - PadGT: {}
  49. batch_size: 8
  50. shuffle: true
  51. drop_last: true
  52. use_shared_memory: true
  53. collate_batch: true
  54. EvalReader:
  55. sample_transforms:
  56. - Decode: {}
  57. - Resize: {target_size: *eval_size, keep_ratio: False, interp: 2}
  58. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  59. - Permute: {}
  60. batch_size: 2
  61. TestReader:
  62. inputs_def:
  63. image_shape: [3, *eval_height, *eval_width]
  64. sample_transforms:
  65. - Decode: {}
  66. - Resize: {target_size: *eval_size, keep_ratio: False, interp: 2}
  67. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  68. - Permute: {}
  69. batch_size: 1
  70. fuse_normalize: True