Skip to content
Snippets Groups Projects
Commit 9afcdf36 authored by hexiangdong2019's avatar hexiangdong2019
Browse files

修改训练模型保存设置

parent 1409f38e
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ lr_iter = cosine_lr(3e-5, 20, 500)
net_loss = SoftmaxCrossEntropyLoss(6, 255)
net_opt = nn.Adam(net.trainable_params(), learning_rate=lr_iter)
config_ck = CheckpointConfig(save_checkpoint_steps=1, keep_checkpoint_max=10)
config_ck = CheckpointConfig(save_checkpoint_steps=30, keep_checkpoint_max=1)
ckpoint = ModelCheckpoint(prefix="deeplab.ckpt", config=config_ck)
def cal_hist(a, b, n):
......
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