π [Rename] class, fix #49 issue, it's not repN
Browse files- yolo/model/module.py +2 -2
yolo/model/module.py
CHANGED
@@ -198,7 +198,7 @@ class RepConv(nn.Module):
|
|
198 |
return self.act(self.conv1(x) + self.conv2(x))
|
199 |
|
200 |
|
201 |
-
class
|
202 |
"""A bottleneck block with optional residual connections."""
|
203 |
|
204 |
def __init__(
|
@@ -250,7 +250,7 @@ class RepNCSP(nn.Module):
|
|
250 |
self.conv3 = Conv(2 * neck_channels, out_channels, kernel_size, **kwargs)
|
251 |
|
252 |
self.bottleneck = nn.Sequential(
|
253 |
-
*[
|
254 |
)
|
255 |
|
256 |
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
|
|
198 |
return self.act(self.conv1(x) + self.conv2(x))
|
199 |
|
200 |
|
201 |
+
class Bottleneck(nn.Module):
|
202 |
"""A bottleneck block with optional residual connections."""
|
203 |
|
204 |
def __init__(
|
|
|
250 |
self.conv3 = Conv(2 * neck_channels, out_channels, kernel_size, **kwargs)
|
251 |
|
252 |
self.bottleneck = nn.Sequential(
|
253 |
+
*[Bottleneck(neck_channels, neck_channels, **neck_args) for _ in range(repeat_num)]
|
254 |
)
|
255 |
|
256 |
def forward(self, x: torch.Tensor) -> torch.Tensor:
|