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/hub/yolov5-p7.yaml
Views: 475
1
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license
2
3
# Parameters
4
nc: 80 # number of classes
5
depth_multiple: 1.0 # model depth multiple
6
width_multiple: 1.0 # layer channel multiple
7
anchors: 3 # auto-anchor 3 anchors per P output layer
8
9
# YOLOv5 v6.0 backbone
10
backbone:
11
# [from, number, module, args]
12
[[-1, 1, Conv, [64, 6, 2, 2]], # 0-P1/2
13
[-1, 1, Conv, [128, 3, 2]], # 1-P2/4
14
[-1, 3, C3, [128]],
15
[-1, 1, Conv, [256, 3, 2]], # 3-P3/8
16
[-1, 6, C3, [256]],
17
[-1, 1, Conv, [512, 3, 2]], # 5-P4/16
18
[-1, 9, C3, [512]],
19
[-1, 1, Conv, [768, 3, 2]], # 7-P5/32
20
[-1, 3, C3, [768]],
21
[-1, 1, Conv, [1024, 3, 2]], # 9-P6/64
22
[-1, 3, C3, [1024]],
23
[-1, 1, Conv, [1280, 3, 2]], # 11-P7/128
24
[-1, 3, C3, [1280]],
25
[-1, 1, SPPF, [1280, 5]], # 13
26
]
27
28
# YOLOv5 head
29
head:
30
[[-1, 1, Conv, [1024, 1, 1]],
31
[-1, 1, nn.Upsample, [None, 2, 'nearest']],
32
[[-1, 10], 1, Concat, [1]], # cat backbone P6
33
[-1, 3, C3, [1024, False]], # 17
34
35
[-1, 1, Conv, [768, 1, 1]],
36
[-1, 1, nn.Upsample, [None, 2, 'nearest']],
37
[[-1, 8], 1, Concat, [1]], # cat backbone P5
38
[-1, 3, C3, [768, False]], # 21
39
40
[-1, 1, Conv, [512, 1, 1]],
41
[-1, 1, nn.Upsample, [None, 2, 'nearest']],
42
[[-1, 6], 1, Concat, [1]], # cat backbone P4
43
[-1, 3, C3, [512, False]], # 25
44
45
[-1, 1, Conv, [256, 1, 1]],
46
[-1, 1, nn.Upsample, [None, 2, 'nearest']],
47
[[-1, 4], 1, Concat, [1]], # cat backbone P3
48
[-1, 3, C3, [256, False]], # 29 (P3/8-small)
49
50
[-1, 1, Conv, [256, 3, 2]],
51
[[-1, 26], 1, Concat, [1]], # cat head P4
52
[-1, 3, C3, [512, False]], # 32 (P4/16-medium)
53
54
[-1, 1, Conv, [512, 3, 2]],
55
[[-1, 22], 1, Concat, [1]], # cat head P5
56
[-1, 3, C3, [768, False]], # 35 (P5/32-large)
57
58
[-1, 1, Conv, [768, 3, 2]],
59
[[-1, 18], 1, Concat, [1]], # cat head P6
60
[-1, 3, C3, [1024, False]], # 38 (P6/64-xlarge)
61
62
[-1, 1, Conv, [1024, 3, 2]],
63
[[-1, 14], 1, Concat, [1]], # cat head P7
64
[-1, 3, C3, [1280, False]], # 41 (P7/128-xxlarge)
65
66
[[29, 32, 35, 38, 41], 1, Detect, [nc, anchors]], # Detect(P3, P4, P5, P6, P7)
67
]
68
69