Skip to content
Snippets Groups Projects
Commit c2f8156c authored by anzhengqi's avatar anzhengqi
Browse files

modify psenet scripts

parent adccb235
No related branches found
No related tags found
No related merge requests found
......@@ -118,9 +118,9 @@ def train():
net = TrainOneStepCell(net, opt)
time_cb = TimeMonitor(data_size=step_size)
loss_cb = LossCallBack(per_print_times=10)
loss_cb = LossCallBack(per_print_times=step_size)
# set and apply parameters of check point config.TRAIN_MODEL_SAVE_PATH
ckpoint_cf = CheckpointConfig(save_checkpoint_steps=1875, keep_checkpoint_max=3)
ckpoint_cf = CheckpointConfig(save_checkpoint_steps=20*step_size, keep_checkpoint_max=10)
ckpoint_cb = ModelCheckpoint(prefix="PSENet",
config=ckpoint_cf,
directory="{}/ckpt_{}".format(config.TRAIN_MODEL_SAVE_PATH,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment