未验证 提交 bc104407 编写于 作者: B Bai Yifan 提交者: GitHub

add dygraph demo issue (#561)

上级 c4511483
...@@ -117,9 +117,9 @@ def compress(args): ...@@ -117,9 +117,9 @@ def compress(args):
pretrain = True if args.data == "imagenet" else False pretrain = True if args.data == "imagenet" else False
if args.model == "mobilenet_v1": if args.model == "mobilenet_v1":
net = mobilenet_v1(pretrained=pretrain) net = mobilenet_v1(pretrained=pretrain, num_classes=class_dim)
elif args.model == "mobilenet_v3": elif args.model == "mobilenet_v3":
net = MobileNetV3_large_x1_0() net = MobileNetV3_large_x1_0(class_dim=class_dim)
if pretrain: if pretrain:
load_dygraph_pretrain(net, args.pretrained_model, True) load_dygraph_pretrain(net, args.pretrained_model, True)
else: else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册