dschandra commited on
Commit
4e8142a
·
verified ·
1 Parent(s): f47a8e5

Create yolov8n.yaml

Browse files
Files changed (1) hide show
  1. models/yolov8n.yaml +39 -0
models/yolov8n.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # backend/models/yolov8n.yaml
2
+ nc: 80 # Number of classes (default for yolov8n, adjust if custom-trained)
3
+ depth_multiple: 0.33
4
+ width_multiple: 0.50
5
+
6
+ anchors:
7
+ - [10,13, 16,30, 33,23]
8
+ - [30,61, 62,45, 59,119]
9
+ - [116,90, 156,198, 373,326]
10
+
11
+ backbone:
12
+ # [from, number, module, args]
13
+ [[-1, 1, Conv, [64, 3, 2]],
14
+ [-1, 1, Conv, [128, 3, 2]],
15
+ [-1, 3, C2f, [128, True]],
16
+ [-1, 1, Conv, [256, 3, 2]],
17
+ [-1, 6, C2f, [256, True]],
18
+ [-1, 1, Conv, [512, 3, 2]],
19
+ [-1, 6, C2f, [512, True]],
20
+ [-1, 1, Conv, [1024, 3, 2]],
21
+ [-1, 3, C2f, [1024, True]],
22
+ [-1, 1, SPPF, [1024, 5]]]
23
+
24
+ head:
25
+ [[-1, 1, Conv, [512, 1, 1]],
26
+ [-1, 1, nn.Upsample, [None, 2, 'nearest']],
27
+ [[-1, 6], 1, Concat, [1]],
28
+ [-1, 3, C2f, [512, False]],
29
+ [-1, 1, Conv, [256, 1, 1]],
30
+ [-1, 1, nn.Upsample, [None, 2, 'nearest']],
31
+ [[-1, 4], 1, Concat, [1]],
32
+ [-1, 3, C2f, [256, False]],
33
+ [-1, 1, Conv, [256, 3, 2]],
34
+ [[-1, 12], 1, Concat, [1]],
35
+ [-1, 3, C2f, [512, False]],
36
+ [-1, 1, Conv, [512, 3, 2]],
37
+ [[-1, 9], 1, Concat, [1]],
38
+ [-1, 3, C2f, [1024, False]],
39
+ [[15, 18, 21], 1, Detect, [nc, anchors]]]