Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
SOLOv2-pytorch
Commits
9b0bcb1c
Unverified
Commit
9b0bcb1c
authored
Jun 23, 2019
by
Kai Chen
Committed by
GitHub
Jun 23, 2019
Browse files
bug fix for x101 gcnet (#854)
parent
ae856e11
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
mmdet/models/backbones/resnet.py
mmdet/models/backbones/resnet.py
+9
-9
mmdet/models/backbones/resnext.py
mmdet/models/backbones/resnext.py
+2
-2
No files found.
mmdet/models/backbones/resnet.py
View file @
9b0bcb1c
...
...
@@ -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
,
...
...
@@ -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
,
...
...
mmdet/models/backbones/resnext.py
View file @
9b0bcb1c
...
...
@@ -11,12 +11,12 @@ from ..utils import build_conv_layer, build_norm_layer
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__
(
*
arg
s
,
**
kwargs
)
super
(
Bottleneck
,
self
).
__init__
(
inplanes
,
plane
s
,
**
kwargs
)
if
groups
==
1
:
width
=
self
.
planes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment