This commit is contained in:
Glenn Jocher 2020-02-24 09:06:17 -08:00
parent a3671bde94
commit ef3bd7e12b
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ def train():
# scheduler = lr_scheduler.LambdaLR(optimizer, lr_lambda=lf) # scheduler = lr_scheduler.LambdaLR(optimizer, lr_lambda=lf)
# scheduler = lr_scheduler.MultiStepLR(optimizer, milestones=range(59, 70, 1), gamma=0.8) # gradual fall to 0.1*lr0 # scheduler = lr_scheduler.MultiStepLR(optimizer, milestones=range(59, 70, 1), gamma=0.8) # gradual fall to 0.1*lr0
scheduler = lr_scheduler.MultiStepLR(optimizer, milestones=[round(epochs * x) for x in [0.8, 0.9]], gamma=0.1) scheduler = lr_scheduler.MultiStepLR(optimizer, milestones=[round(epochs * x) for x in [0.8, 0.9]], gamma=0.1)
scheduler.last_epoch = start_epoch - 1 scheduler.last_epoch = start_epoch
# # Plot lr schedule # # Plot lr schedule
# y = [] # y = []