文章摘要
代码解释:标准瓶颈层 class Bottleneck(nn.Module):def __init__(self, c1, c2, shortcut=True, g=1, e=0.5):super().__init__()c_ = int(c2 * e)self.cv1 = Conv(c1, c_, 1, 1)self.cv2 = Conv(c_, c2, 3, 1, g=g)self.add = shortcut and c1 == c2def forward(self, x):re…