--- description: Explore detailed documentation of block modules in Ultralytics, available for deep learning tasks. Contribute and improve the codebase!. keywords: Ultralytics, YOLO, neural networks, block modules, DFL, Proto, HGStem, HGBlock, SPP, SPPF, C1, C2, C2f, C3, C3x, RepC3, C3TR, C3Ghost, GhostBottleneck, Bottleneck, BottleneckCSP, ResNetBlock, MaxSigmoidAttnBlock, ImagePoolingAttn, ContrastiveHead, RepBottleneck, RepCSP, RepNCSPELAN4, ADown, SPPELAN, Silence, CBLinear, CBFuse --- # Reference for `ultralytics/nn/modules/block.py` !!! Note 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). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/nn/modules/block.py) 🛠️. Thank you 🙏!
## ::: ultralytics.nn.modules.block.DFL



## ::: ultralytics.nn.modules.block.Proto



## ::: ultralytics.nn.modules.block.HGStem



## ::: ultralytics.nn.modules.block.HGBlock



## ::: ultralytics.nn.modules.block.SPP



## ::: ultralytics.nn.modules.block.SPPF



## ::: ultralytics.nn.modules.block.C1



## ::: ultralytics.nn.modules.block.C2



## ::: ultralytics.nn.modules.block.C2f



## ::: ultralytics.nn.modules.block.C3



## ::: ultralytics.nn.modules.block.C3x



## ::: ultralytics.nn.modules.block.RepC3



## ::: ultralytics.nn.modules.block.C3TR



## ::: ultralytics.nn.modules.block.C3Ghost



## ::: ultralytics.nn.modules.block.GhostBottleneck



## ::: ultralytics.nn.modules.block.Bottleneck



## ::: ultralytics.nn.modules.block.BottleneckCSP



## ::: ultralytics.nn.modules.block.ResNetBlock



## ::: ultralytics.nn.modules.block.ResNetLayer



## ::: ultralytics.nn.modules.block.MaxSigmoidAttnBlock



## ::: ultralytics.nn.modules.block.C2fAttn



## ::: ultralytics.nn.modules.block.ImagePoolingAttn



## ::: ultralytics.nn.modules.block.ContrastiveHead



## ::: ultralytics.nn.modules.block.BNContrastiveHead



## ::: ultralytics.nn.modules.block.RepBottleneck



## ::: ultralytics.nn.modules.block.RepCSP



## ::: ultralytics.nn.modules.block.RepNCSPELAN4



## ::: ultralytics.nn.modules.block.ELAN1



## ::: ultralytics.nn.modules.block.AConv



## ::: ultralytics.nn.modules.block.ADown



## ::: ultralytics.nn.modules.block.SPPELAN



## ::: ultralytics.nn.modules.block.CBLinear



## ::: ultralytics.nn.modules.block.CBFuse



## ::: ultralytics.nn.modules.block.RepVGGDW



## ::: ultralytics.nn.modules.block.CIB



## ::: ultralytics.nn.modules.block.C2fCIB



## ::: ultralytics.nn.modules.block.Attention



## ::: ultralytics.nn.modules.block.PSA



## ::: ultralytics.nn.modules.block.SCDown