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

修改训练参数

parent 12d99e65
No related branches found
No related tags found
No related merge requests found
......@@ -28,10 +28,10 @@ train_dataset_generator = GetDatasetGenerator('./datasets', 'train')
train_dataset = ds.GeneratorDataset(train_dataset_generator, ["data", "label"], shuffle=True)
train_dataset = train_dataset.batch(4, drop_remainder=True)
lr_iter = exponential_lr(3e-5, 20, 0.9, 100, staircase=True)
# lr_iter = exponential_lr(3e-5, 20, 0.9, 100, staircase=True)
net_loss = SoftmaxCrossEntropyLoss(6, 255)
net_opt = nn.Adam(net.trainable_params(), learning_rate=lr_iter)
net_opt = nn.Adam(net.trainable_params(), learning_rate=3e-4)
config_ck = CheckpointConfig(save_checkpoint_steps=30, keep_checkpoint_max=1)
ckpoint = ModelCheckpoint(prefix="deeplab.ckpt", 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