diff --git a/train.py b/train.py index 2099dd60..3a70f195 100644 --- a/train.py +++ b/train.py @@ -93,11 +93,12 @@ def train( scheduler = optim.lr_scheduler.LambdaLR(optimizer, lr_lambda=lf, last_epoch=start_epoch - 1) # scheduler = optim.lr_scheduler.MultiStepLR(optimizer, milestones=[218, 245], gamma=0.1, last_epoch=start_epoch - 1) - y = [] - for _ in range(epochs): - scheduler.step() - y.append(optimizer.param_groups[0]['lr']) - plt.plot(y) + # Plot lr schedule + # y = [] + # for _ in range(epochs): + # scheduler.step() + # y.append(optimizer.param_groups[0]['lr']) + # plt.plot(y) # Dataset dataset = LoadImagesAndLabels(train_path, img_size=img_size, augment=True)