提交 922f33fe 编写于 作者: littletomatodonkey's avatar littletomatodonkey

fix train

上级 630cb60a
...@@ -98,7 +98,7 @@ def main(args): ...@@ -98,7 +98,7 @@ def main(args):
# 2. validate with validate dataset # 2. validate with validate dataset
if config.validate and epoch_id % config.valid_interval == 0: if config.validate and epoch_id % config.valid_interval == 0:
net.eval() net.eval()
top1_acc = program.run(valid_dataloader, config, net, None, top1_acc = program.run(valid_dataloader, config, net, None, None,
epoch_id, 'valid') epoch_id, 'valid')
if top1_acc > best_top1_acc: if top1_acc > best_top1_acc:
best_top1_acc = top1_acc best_top1_acc = top1_acc
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册