CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hukaixuan19970627

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: hukaixuan19970627/yolov5_obb
Path: blob/master/models/yolov5m.yaml
Views: 475
1
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license
2
3
# Parameters
4
nc: 80 # number of classes
5
depth_multiple: 0.67 # model depth multiple
6
width_multiple: 0.75 # layer channel multiple
7
anchors:
8
- [10,13, 16,30, 33,23] # P3/8
9
- [30,61, 62,45, 59,119] # P4/16
10
- [116,90, 156,198, 373,326] # P5/32
11
12
# YOLOv5 v6.0 backbone
13
backbone:
14
# [from, number, module, args]
15
[[-1, 1, Conv, [64, 6, 2, 2]], # 0-P1/2
16
[-1, 1, Conv, [128, 3, 2]], # 1-P2/4
17
[-1, 3, C3, [128]],
18
[-1, 1, Conv, [256, 3, 2]], # 3-P3/8
19
[-1, 6, C3, [256]],
20
[-1, 1, Conv, [512, 3, 2]], # 5-P4/16
21
[-1, 9, C3, [512]],
22
[-1, 1, Conv, [1024, 3, 2]], # 7-P5/32
23
[-1, 3, C3, [1024]],
24
[-1, 1, SPPF, [1024, 5]], # 9
25
]
26
27
# YOLOv5 v6.0 head
28
head:
29
[[-1, 1, Conv, [512, 1, 1]],
30
[-1, 1, nn.Upsample, [None, 2, 'nearest']],
31
[[-1, 6], 1, Concat, [1]], # cat backbone P4
32
[-1, 3, C3, [512, False]], # 13
33
34
[-1, 1, Conv, [256, 1, 1]],
35
[-1, 1, nn.Upsample, [None, 2, 'nearest']],
36
[[-1, 4], 1, Concat, [1]], # cat backbone P3
37
[-1, 3, C3, [256, False]], # 17 (P3/8-small)
38
39
[-1, 1, Conv, [256, 3, 2]],
40
[[-1, 14], 1, Concat, [1]], # cat head P4
41
[-1, 3, C3, [512, False]], # 20 (P4/16-medium)
42
43
[-1, 1, Conv, [512, 3, 2]],
44
[[-1, 10], 1, Concat, [1]], # cat head P5
45
[-1, 3, C3, [1024, False]], # 23 (P5/32-large)
46
47
[[17, 20, 23], 1, Detect, [nc, anchors]], # Detect(P3, P4, P5)
48
]
49
50