You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: train_gcn.py
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,13 @@
30
30
train_args= {
31
31
'batch_size': 16,
32
32
'epoch_num': 800, # I stop training only when val loss doesn't seem to decrease anymore, so just set a large value.
33
-
'pretrained_lr': 1e-4, # used for the pretrained layers of model
34
-
'new_lr': 1e-3, # used for the newly added layers of model
33
+
'pretrained_lr': 1e-7, # used for the pretrained layers of model
34
+
'new_lr': 1e-7, # used for the newly added layers of model
35
35
'weight_decay': 5e-4,
36
-
'snapshot': '', # empty string denotes initial training, otherwise it should be a string of snapshot name
36
+
'snapshot': 'epoch_297_loss_0.8282_mean_iu_0.4390_lr_0.00000100.pth', # empty string denotes initial training, otherwise it should be a string of snapshot name
37
37
'print_freq': 30,
38
38
'input_size': (224, 448), # (height, width)
39
39
}
40
-
41
40
val_args= {
42
41
'batch_size': 8,
43
42
'img_sample_rate': 0.15
@@ -97,23 +96,23 @@ def main():
97
96
optimizer=optim.SGD([
98
97
{'params': [paramforname, paraminnet.named_parameters() if
0 commit comments