|
|
|
---
|
|
|
|
description: Explore Ultralytics neural network modules for convolution, attention, detection, pose, and classification in PyTorch.
|
|
|
|
---
|
|
|
|
|
|
|
|
# Conv
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.Conv
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# DWConv
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.DWConv
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# DWConvTranspose2d
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.DWConvTranspose2d
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# ConvTranspose
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.ConvTranspose
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# DFL
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.DFL
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# TransformerLayer
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.TransformerLayer
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# TransformerBlock
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.TransformerBlock
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# Bottleneck
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.Bottleneck
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# BottleneckCSP
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.BottleneckCSP
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# C3
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.C3
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# C2
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.C2
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# C2f
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.C2f
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# ChannelAttention
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.ChannelAttention
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# SpatialAttention
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.SpatialAttention
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# CBAM
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.CBAM
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# C1
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.C1
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# C3x
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.C3x
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# C3TR
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.C3TR
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# C3Ghost
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.C3Ghost
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# SPP
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.SPP
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# SPPF
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.SPPF
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# Focus
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.Focus
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# GhostConv
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.GhostConv
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# GhostBottleneck
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.GhostBottleneck
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# Concat
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.Concat
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# Proto
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.Proto
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# Ensemble
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.Ensemble
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# Detect
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.Detect
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# MLPBlock
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.MLPBlock
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# LayerNorm2d
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.LayerNorm2d
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# Segment
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.Segment
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# Pose
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.Pose
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# Classify
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.Classify
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
# autopad
|
|
|
|
---
|
|
|
|
:::ultralytics.nn.modules.autopad
|
|
|
|
<br><br>
|