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/yolov3.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:
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
# darknet53 backbone
13
backbone:
14
# [from, number, module, args]
15
[[-1, 1, Conv, [32, 3, 1]], # 0
16
[-1, 1, Conv, [64, 3, 2]], # 1-P1/2
17
[-1, 1, Bottleneck, [64]],
18
[-1, 1, Conv, [128, 3, 2]], # 3-P2/4
19
[-1, 2, Bottleneck, [128]],
20
[-1, 1, Conv, [256, 3, 2]], # 5-P3/8
21
[-1, 8, Bottleneck, [256]],
22
[-1, 1, Conv, [512, 3, 2]], # 7-P4/16
23
[-1, 8, Bottleneck, [512]],
24
[-1, 1, Conv, [1024, 3, 2]], # 9-P5/32
25
[-1, 4, Bottleneck, [1024]], # 10
26
]
27
28
# YOLOv3 head
29
head:
30
[[-1, 1, Bottleneck, [1024, False]],
31
[-1, 1, Conv, [512, [1, 1]]],
32
[-1, 1, Conv, [1024, 3, 1]],
33
[-1, 1, Conv, [512, 1, 1]],
34
[-1, 1, Conv, [1024, 3, 1]], # 15 (P5/32-large)
35
36
[-2, 1, Conv, [256, 1, 1]],
37
[-1, 1, nn.Upsample, [None, 2, 'nearest']],
38
[[-1, 8], 1, Concat, [1]], # cat backbone P4
39
[-1, 1, Bottleneck, [512, False]],
40
[-1, 1, Bottleneck, [512, False]],
41
[-1, 1, Conv, [256, 1, 1]],
42
[-1, 1, Conv, [512, 3, 1]], # 22 (P4/16-medium)
43
44
[-2, 1, Conv, [128, 1, 1]],
45
[-1, 1, nn.Upsample, [None, 2, 'nearest']],
46
[[-1, 6], 1, Concat, [1]], # cat backbone P3
47
[-1, 1, Bottleneck, [256, False]],
48
[-1, 2, Bottleneck, [256, False]], # 27 (P3/8-small)
49
50
[[27, 22, 15], 1, Detect, [nc, anchors]], # Detect(P3, P4, P5)
51
]
52
53