pull/13567/head
UltralyticsAssistant 2025-04-19 09:16:32 +00:00
parent f796cf4764
commit e18ccb2be0
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ def train(
# Scheduler
if opt.linear_lr:
def lf(x):
return (1 - x / (epochs - 1)) * (1.0 - hyp["lrf"]) + hyp["lrf"] # linear
else: