Skip to content

Commit

Permalink
Update resnet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
monster119120 authored Feb 16, 2023
1 parent f7c61b4 commit 60f6753
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions archs/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __init__(self, inplanes, planes, stride=1, downsample=None, groups=1,
# Both self.conv2 and self.downsample layers downsample the input when stride != 1
self.conv1 = conv1x1(inplanes, width)
self.bn1 = norm_layer(width)
self.conv2 = conv3x3(width, width, stride, groups, dilation)
self.conv2 = conv3x3(width, width, stride)
self.bn2 = norm_layer(width)
self.conv3 = conv1x1(width, planes * self.expansion)
self.bn3 = norm_layer(planes * self.expansion)
Expand Down Expand Up @@ -132,7 +132,7 @@ def forward(self, x):
out += identity
out = self.relu(out)

return
return out


class BasicBlock(nn.Module):
Expand Down Expand Up @@ -315,4 +315,4 @@ def resnet152_dynamic(pretrained=False, **kwargs):
m = resnet50_dynamic(pretrained=True)
print(m)
x = torch.randn(size=(4, 3, 224, 224))
m(x)
m(x)

0 comments on commit 60f6753

Please sign in to comment.