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
OpenDAS
MMCV
Commits
258d4d32
Commit
258d4d32
authored
Jun 24, 2019
by
Jiangmiao Pang
Committed by
Kai Chen
Jun 24, 2019
Browse files
fix one bug in vgg (#83)
parent
ff563100
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
mmcv/cnn/vgg.py
mmcv/cnn/vgg.py
+6
-1
No files found.
mmcv/cnn/vgg.py
View file @
258d4d32
...
...
@@ -16,7 +16,11 @@ def conv3x3(in_planes, out_planes, dilation=1):
dilation
=
dilation
)
def
make_vgg_layer
(
inplanes
,
planes
,
num_blocks
,
dilation
=
1
,
with_bn
=
False
,
def
make_vgg_layer
(
inplanes
,
planes
,
num_blocks
,
dilation
=
1
,
with_bn
=
False
,
ceil_mode
=
False
):
layers
=
[]
for
_
in
range
(
num_blocks
):
...
...
@@ -103,6 +107,7 @@ class VGG(nn.Module):
start_idx
=
end_idx
if
not
with_last_pool
:
vgg_layers
.
pop
(
-
1
)
self
.
range_sub_modules
[
-
1
][
1
]
-=
1
self
.
module_name
=
'features'
self
.
add_module
(
self
.
module_name
,
nn
.
Sequential
(
*
vgg_layers
))
...
...
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