文章目录
yolov5的C3全称
- 点击可找到
C3
模块然后查看全称:https://github.com/ultralytics/yolov5/blob/master/models/common.py - 全称为:
CSP Bottleneck with 3 convolutions
C3
模块代码
class C3(nn.Module):
# CSP Bottleneck with 3 convolutions
def __init__(self, c1, c2, n=1, shortcut=True, g=1, e=0.5):
"""Initializes C3 module with options for channel count, bottleneck repetition, shortcut usage, group
convolutions, and expansion.
"""
super().__init__()
c_ = int(c2 * e) # hidden channels
self.cv1 = Conv(c1, c_, 1, 1)
self.cv2 = Conv(c1, c_