glenn-jocher
commited on
Commit
•
72d5b58
1
Parent(s):
24c5a94
disable LR plot to suppress warning message
Browse files
train.py
CHANGED
@@ -108,7 +108,7 @@ def train(hyp):
|
|
108 |
# Scheduler https://arxiv.org/pdf/1812.01187.pdf
|
109 |
lf = lambda x: (((1 + math.cos(x * math.pi / epochs)) / 2) ** 1.0) * 0.9 + 0.1 # cosine
|
110 |
scheduler = lr_scheduler.LambdaLR(optimizer, lr_lambda=lf)
|
111 |
-
plot_lr_scheduler(optimizer, scheduler, epochs, save_dir=log_dir)
|
112 |
|
113 |
# Load Model
|
114 |
google_utils.attempt_download(weights)
|
|
|
108 |
# Scheduler https://arxiv.org/pdf/1812.01187.pdf
|
109 |
lf = lambda x: (((1 + math.cos(x * math.pi / epochs)) / 2) ** 1.0) * 0.9 + 0.1 # cosine
|
110 |
scheduler = lr_scheduler.LambdaLR(optimizer, lr_lambda=lf)
|
111 |
+
# plot_lr_scheduler(optimizer, scheduler, epochs, save_dir=log_dir)
|
112 |
|
113 |
# Load Model
|
114 |
google_utils.attempt_download(weights)
|