Skip to content
Snippets Groups Projects
Commit 8b6f36a8 authored by 何向东's avatar 何向东
Browse files

使用可变学习率

parent 168b810a
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ train_dataset = train_dataset.batch(4, drop_remainder=True)
lr_iter = exponential_lr(3e-5, 20, 0.98, 500, staircase=True)
net_loss = SoftmaxCrossEntropyLoss(6, 255)
net_opt = nn.Adam(net.trainable_params(), learning_rate=3e-5)
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)
......
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