yolov6_cspbep.yml 1.69 KB
Newer Older
wangkx1's avatar
wangkx1 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
architecture: YOLOv6
norm_type: sync_bn
use_ema: True
ema_decay: 0.9999
ema_decay_type: "exponential"
find_unused_parameters: True

act: 'relu' # 'silu' in L model
training_mode: "repvgg"
self_distill: False

depth_mult: 1.0 # default: L model
width_mult: 1.0

YOLOv6:
  backbone: CSPBepBackbone
  neck: CSPRepBiFPAN
  yolo_head: EffiDeHead_fuseab
  post_process: ~

CSPBepBackbone:
  arch: 'P5'
  return_idx: [2, 3, 4]
  csp_e: 0.5
  fuse_P2: True # add P2 and return 4 layers
  cspsppf: False

CSPRepBiFPAN:
  csp_e: 0.5

EffiDeHead_fuseab:
  fpn_strides: [8, 16, 32]
  grid_cell_scale: 5.0
  grid_cell_offset: 0.5
  reg_max: 16
  use_dfl: True # in m/l version
  static_assigner_epoch: 3 # warmup_epoch
  loss_weight: {cls: 1.0, iou: 2.5, dfl: 0.5, cwd: 10.0}
  iou_type: 'giou'  # 'siou' in n/t version, 'giou' in s/m/l version
  distill_weight: {cls: 1.0, dfl: 1.0}
  static_assigner:
    name: ATSSAssigner
    topk: 9
  assigner:
    name: TaskAlignedAssigner
    topk: 13
    alpha: 1.0
    beta: 6.0
  nms:
    name: MultiClassNMS
    nms_top_k: 3000
    keep_top_k: 300
    score_threshold: 0.03
    nms_threshold: 0.65

EffiDeHead:
  fpn_strides: [8, 16, 32]
  grid_cell_scale: 5.0
  grid_cell_offset: 0.5
  reg_max: 16
  use_dfl: True # in m/l version
  static_assigner_epoch: 3 # warmup_epoch
  loss_weight: {cls: 1.0, iou: 2.5, dfl: 0.5, cwd: 10.0}
  iou_type: 'giou'  # 'siou' in n/t version, 'giou' in s/m/l version
  distill_weight: {cls: 1.0, dfl: 1.0}
  static_assigner:
    name: ATSSAssigner
    topk: 9
  assigner:
    name: TaskAlignedAssigner
    topk: 13
    alpha: 1.0
    beta: 6.0
  nms:
    name: MultiClassNMS
    nms_top_k: 3000
    keep_top_k: 300
    score_threshold: 0.03
    nms_threshold: 0.65