ppyoloe_vit_base_csppan_cae_36e_coco.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. _BASE_: [
  2. '../datasets/coco_detection.yml',
  3. '../runtime.yml',
  4. './_base_/ppyoloe_reader.yml',
  5. './_base_/optimizer_base_36e.yml'
  6. ]
  7. weights: output/ppyoloe_vit_base_csppan_cae_36e_coco/model_final
  8. snapshot_epoch: 2
  9. log_iter: 100
  10. use_ema: true
  11. ema_decay: 0.9999
  12. ema_skip_names: ['yolo_head.proj_conv.weight', 'backbone.pos_embed']
  13. custom_black_list: ['reduce_mean']
  14. use_fused_allreduce_gradients: &use_checkpoint False
  15. architecture: YOLOv3
  16. norm_type: sync_bn
  17. YOLOv3:
  18. backbone: VisionTransformer
  19. neck: YOLOCSPPAN
  20. yolo_head: PPYOLOEHead
  21. post_process: ~
  22. VisionTransformer:
  23. patch_size: 16
  24. embed_dim: 768
  25. depth: 12
  26. num_heads: 12
  27. mlp_ratio: 4
  28. qkv_bias: True
  29. drop_rate: 0.0
  30. drop_path_rate: 0.2
  31. init_values: 0.1
  32. final_norm: False
  33. use_rel_pos_bias: False
  34. use_sincos_pos_emb: True
  35. epsilon: 0.000001 # 1e-6
  36. out_indices: [11, ]
  37. with_fpn: True
  38. num_fpn_levels: 3
  39. out_with_norm: False
  40. use_checkpoint: *use_checkpoint
  41. pretrained: https://bj.bcebos.com/v1/paddledet/models/pretrained/vit_base_cae_pretrained.pdparams
  42. YOLOCSPPAN:
  43. in_channels: [768, 768, 768]
  44. act: 'silu'
  45. PPYOLOEHead:
  46. fpn_strides: [8, 16, 32]
  47. in_channels: [768, 768, 768]
  48. static_assigner_epoch: -1
  49. grid_cell_scale: 5.0
  50. grid_cell_offset: 0.5
  51. use_varifocal_loss: True
  52. loss_weight: {class: 1.0, iou: 2.5, dfl: 0.5}
  53. static_assigner:
  54. name: ATSSAssigner
  55. topk: 9
  56. assigner:
  57. name: TaskAlignedAssigner
  58. topk: 13
  59. alpha: 1.0
  60. beta: 6.0
  61. nms:
  62. name: MultiClassNMS
  63. nms_top_k: 1000
  64. keep_top_k: 300
  65. score_threshold: 0.01
  66. nms_threshold: 0.7