Skip to content
Snippets Groups Projects
Unverified Commit e224dc10 authored by Kai Chen's avatar Kai Chen Committed by GitHub
Browse files

add an argument no_norm_on_lateral to fpn (#1240)

parent e0750f8c
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment