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
e224dc10
"models/vscode:/vscode.git/clone" did not exist on "9c4cd06df936aede6c3a6dafffb8679242d548f2"
Unverified
Commit
e224dc10
authored
Aug 22, 2019
by
Kai Chen
Committed by
GitHub
Aug 22, 2019
Browse files
add an argument no_norm_on_lateral to fpn (#1240)
parent
e0750f8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mmdet/models/necks/fpn.py
mmdet/models/necks/fpn.py
+3
-1
No files found.
mmdet/models/necks/fpn.py
View file @
e224dc10
...
...
@@ -19,6 +19,7 @@ class FPN(nn.Module):
add_extra_convs
=
False
,
extra_convs_on_inputs
=
True
,
relu_before_extra_convs
=
False
,
no_norm_on_lateral
=
False
,
conv_cfg
=
None
,
norm_cfg
=
None
,
activation
=
None
):
...
...
@@ -30,6 +31,7 @@ class FPN(nn.Module):
self
.
num_outs
=
num_outs
self
.
activation
=
activation
self
.
relu_before_extra_convs
=
relu_before_extra_convs
self
.
no_norm_on_lateral
=
no_norm_on_lateral
self
.
fp16_enabled
=
False
if
end_level
==
-
1
:
...
...
@@ -54,7 +56,7 @@ class FPN(nn.Module):
out_channels
,
1
,
conv_cfg
=
conv_cfg
,
norm_cfg
=
norm_cfg
,
norm_cfg
=
norm_cfg
if
not
self
.
no_norm_on_lateral
else
None
,
activation
=
self
.
activation
,
inplace
=
False
)
fpn_conv
=
ConvModule
(
...
...
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