提交 05066978 编写于 作者: C chenguowei01

eval for last epoch model

上级 74a26f6c
...@@ -438,7 +438,8 @@ def train(cfg): ...@@ -438,7 +438,8 @@ def train(cfg):
except Exception as e: except Exception as e:
print(e) print(e)
if epoch % cfg.TRAIN.SNAPSHOT_EPOCH == 0 and cfg.TRAINER_ID == 0: if (epoch % cfg.TRAIN.SNAPSHOT_EPOCH == 0
or epoch == cfg.SOLVER.NUM_EPOCHS) and cfg.TRAINER_ID == 0:
ckpt_dir = save_checkpoint(exe, train_prog, epoch) ckpt_dir = save_checkpoint(exe, train_prog, epoch)
if args.do_eval: if args.do_eval:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册