未验证 提交 3768737a 编写于 作者: J Jason 提交者: GitHub

Merge pull request #132 from SunAhong1993/master

Master
...@@ -47,7 +47,6 @@ def normalize_layer(input, ...@@ -47,7 +47,6 @@ def normalize_layer(input,
scale_attr = fluid.ParamAttr(name=param_prefix + '_scale') scale_attr = fluid.ParamAttr(name=param_prefix + '_scale')
scale_param = fluid.layers.create_parameter( scale_param = fluid.layers.create_parameter(
shape=shape, dtype=input.dtype, name=name, attr=scale_attr) shape=shape, dtype=input.dtype, name=name, attr=scale_attr)
out = fluid.layers.elementwise_mul( out = fluid.layers.elementwise_mul(
x=l2_norm, y=scale_param, axis=-1 if channel_shared else 1) x=l2_norm, y=scale_param, axis=-1 if channel_shared else 1)
return out return out
......
...@@ -32,7 +32,7 @@ def priorbox_layer(inputs, ...@@ -32,7 +32,7 @@ def priorbox_layer(inputs,
name, name,
min_size, min_size,
max_size=None, max_size=None,
aspect_ratio=None, aspect_ratio=1.0,
variance=[0.1, 0.1, 0.2, 0.2], variance=[0.1, 0.1, 0.2, 0.2],
flip=False, flip=False,
clip=False, clip=False,
......
...@@ -100,7 +100,7 @@ def main(): ...@@ -100,7 +100,7 @@ def main():
npy_weight = args.npy_path npy_weight = args.npy_path
fluid_model = args.model_param_path fluid_model = args.model_param_path
outputs = None outputs = None
if len(sys.argv) >= 6: if args.need_layers_name:
outputs = args.need_layers_name.split(',') outputs = args.need_layers_name.split(',')
ret = MyNet.convert(npy_weight, fluid_model, outputs) ret = MyNet.convert(npy_weight, fluid_model, outputs)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册