Skip to content

Commit

Permalink
bug fix for x101 gcnet (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellock authored Jun 22, 2019
1 parent ae856e1 commit 9b0bcb1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions mmdet/models/backbones/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,11 @@ def make_res_layer(block,
layers = []
layers.append(
block(
inplanes,
planes,
stride,
dilation,
downsample,
inplanes=inplanes,
planes=planes,
stride=stride,
dilation=dilation,
downsample=downsample,
style=style,
with_cp=with_cp,
conv_cfg=conv_cfg,
Expand All @@ -314,10 +314,10 @@ def make_res_layer(block,
for i in range(1, blocks):
layers.append(
block(
inplanes,
planes,
1,
dilation,
inplanes=inplanes,
planes=planes,
stride=1,
dilation=dilation,
style=style,
with_cp=with_cp,
conv_cfg=conv_cfg,
Expand Down
4 changes: 2 additions & 2 deletions mmdet/models/backbones/resnext.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

class Bottleneck(_Bottleneck):

def __init__(self, groups=1, base_width=4, *args, **kwargs):
def __init__(self, inplanes, planes, groups=1, base_width=4, **kwargs):
"""Bottleneck block for ResNeXt.
If style is "pytorch", the stride-two layer is the 3x3 conv layer,
if it is "caffe", the stride-two layer is the first 1x1 conv layer.
"""
super(Bottleneck, self).__init__(*args, **kwargs)
super(Bottleneck, self).__init__(inplanes, planes, **kwargs)

if groups == 1:
width = self.planes
Expand Down

0 comments on commit 9b0bcb1

Please sign in to comment.