Skip to content
Snippets Groups Projects
Commit 1409f38e authored by hexiangdong2019's avatar hexiangdong2019
Browse files

修改训练模型保存设置

parent 77889c6b
No related branches found
Tags 5.10.0-60.62.0
No related merge requests found
......@@ -34,8 +34,8 @@ 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=1875, keep_checkpoint_max=10)
ckpoint = ModelCheckpoint(prefix="checkpoint_lenet", config=config_ck)
config_ck = CheckpointConfig(save_checkpoint_steps=1, keep_checkpoint_max=10)
ckpoint = ModelCheckpoint(prefix="deeplab.ckpt", config=config_ck)
def cal_hist(a, b, n):
k = (a >= 0) & (a < 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