File size: 1,684 Bytes
ab854b9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
description: Explore Ultralytics YOLO neural network modules, Proto to BottleneckCSP. Detailed explanation of each module with easy-to-follow code examples.
keywords: YOLO, Ultralytics, neural network, nn.modules.block, Proto, HGBlock, SPPF, C2, C3, RepC3, C3Ghost, Bottleneck, BottleneckCSP
---

# Reference for `ultralytics/nn/modules/block.py`

!!! note

    Full source code for this file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/block.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules/block.py). Help us fix any issues you see by submitting a [Pull Request](https://docs.ultralytics.com/help/contributing/) ๐Ÿ› ๏ธ. Thank you ๐Ÿ™!

---
## ::: ultralytics.nn.modules.block.DFL
<br><br>

---
## ::: ultralytics.nn.modules.block.Proto
<br><br>

---
## ::: ultralytics.nn.modules.block.HGStem
<br><br>

---
## ::: ultralytics.nn.modules.block.HGBlock
<br><br>

---
## ::: ultralytics.nn.modules.block.SPP
<br><br>

---
## ::: ultralytics.nn.modules.block.SPPF
<br><br>

---
## ::: ultralytics.nn.modules.block.C1
<br><br>

---
## ::: ultralytics.nn.modules.block.C2
<br><br>

---
## ::: ultralytics.nn.modules.block.C2f
<br><br>

---
## ::: ultralytics.nn.modules.block.C3
<br><br>

---
## ::: ultralytics.nn.modules.block.C3x
<br><br>

---
## ::: ultralytics.nn.modules.block.RepC3
<br><br>

---
## ::: ultralytics.nn.modules.block.C3TR
<br><br>

---
## ::: ultralytics.nn.modules.block.C3Ghost
<br><br>

---
## ::: ultralytics.nn.modules.block.GhostBottleneck
<br><br>

---
## ::: ultralytics.nn.modules.block.Bottleneck
<br><br>

---
## ::: ultralytics.nn.modules.block.BottleneckCSP
<br><br>