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

Merge pull request #132 from SunAhong1993/master

Master
......@@ -47,7 +47,6 @@ def normalize_layer(input,
scale_attr = fluid.ParamAttr(name=param_prefix + '_scale')
scale_param = fluid.layers.create_parameter(
shape=shape, dtype=input.dtype, name=name, attr=scale_attr)
out = fluid.layers.elementwise_mul(
x=l2_norm, y=scale_param, axis=-1 if channel_shared else 1)
return out
......
......@@ -32,7 +32,7 @@ def priorbox_layer(inputs,
name,
min_size,
max_size=None,
aspect_ratio=None,
aspect_ratio=1.0,
variance=[0.1, 0.1, 0.2, 0.2],
flip=False,
clip=False,
......
......@@ -100,7 +100,7 @@ def main():
npy_weight = args.npy_path
fluid_model = args.model_param_path
outputs = None
if len(sys.argv) >= 6:
if args.need_layers_name:
outputs = args.need_layers_name.split(',')
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.
先完成此消息的编辑!
想要评论请 注册