提交 44d89ae2 编写于 作者: G gaotingquan

Fix a bug

上级 c44d32fa
......@@ -53,7 +53,10 @@ def create_predictor(args):
out = fluid.layers.softmax(out)
return out
model = architectures.__dict__[args.model]()
if "EfficientNet" in args.model:
model = architectures.__dict__[args.model](is_test=True)
else:
model = architectures.__dict__[args.model]()
place = fluid.CUDAPlace(0) if args.use_gpu else fluid.CPUPlace()
exe = fluid.Executor(place)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册