Skip to content

Commit

Permalink
Merge pull request adobe#40 from danielhavir/master
Browse files Browse the repository at this point in the history
Fix bug in resnet
  • Loading branch information
richzhang authored Sep 17, 2020
2 parents 5eb785d + c1ff7ac commit 4f0cbd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion antialiased_cnns/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __init__(self, inplanes, planes, stride=1, downsample=None, groups=1, norm_l
# Both self.conv2 and self.downsample layers downsample the input when stride != 1
self.conv1 = conv1x1(inplanes, planes)
self.bn1 = norm_layer(planes)
self.conv2 = conv3x3(planes, planes, groups) # stride moved
self.conv2 = conv3x3(planes, planes, groups=groups) # stride moved
self.bn2 = norm_layer(planes)
if(stride==1):
self.conv3 = conv1x1(planes, planes * self.expansion)
Expand Down

0 comments on commit 4f0cbd9

Please sign in to comment.