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

改变开始衰减的轮数

parent 5848721d
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ train_dataset_generator = GetDatasetGenerator('./datasets', 'train') ...@@ -20,7 +20,7 @@ train_dataset_generator = GetDatasetGenerator('./datasets', 'train')
train_dataset = ds.GeneratorDataset(train_dataset_generator, ["data", "label"], shuffle=True) train_dataset = ds.GeneratorDataset(train_dataset_generator, ["data", "label"], shuffle=True)
train_dataset = train_dataset.batch(4, drop_remainder=True) train_dataset = train_dataset.batch(4, drop_remainder=True)
lr_iter = exponential_lr(3e-5, 20, 0.98, 500, staircase=True) lr_iter = exponential_lr(3e-5, 100, 0.98, 500, staircase=True)
net_loss = SoftmaxCrossEntropyLoss(6, 255) 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=lr_iter)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment