Fix RepC3 module for RT-DETR models (#17086)
Co-authored-by: Ultralytics Assistant <135830346+UltralyticsAssistant@users.noreply.github.com> Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
174a1e7a95
commit
acec3d9c1c
1 changed files with 2 additions and 2 deletions
|
|
@ -280,8 +280,8 @@ class RepC3(nn.Module):
|
|||
"""Initialize CSP Bottleneck with a single convolution using input channels, output channels, and number."""
|
||||
super().__init__()
|
||||
c_ = int(c2 * e) # hidden channels
|
||||
self.cv1 = Conv(c1, c2, 1, 1)
|
||||
self.cv2 = Conv(c1, c2, 1, 1)
|
||||
self.cv1 = Conv(c1, c_, 1, 1)
|
||||
self.cv2 = Conv(c1, c_, 1, 1)
|
||||
self.m = nn.Sequential(*[RepConv(c_, c_) for _ in range(n)])
|
||||
self.cv3 = Conv(c_, c2, 1, 1) if c_ != c2 else nn.Identity()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue