This commit is contained in:
Glenn Jocher 2020-03-04 13:24:18 -08:00
parent 981b452b1d
commit 305c07bac8
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ def train():
print('Starting training for %g epochs...' % epochs)
for epoch in range(start_epoch, epochs): # epoch ------------------------------------------------------------------
model.train()
model.hyps['gr'] = 1 - (1 + math.cos(min(epoch * 2, epochs) * math.pi / epochs)) / 2 # GIoU <-> 1.0 ratio
model.hyp['gr'] = 1 - (1 + math.cos(min(epoch * 2, epochs) * math.pi / epochs)) / 2 # GIoU <-> 1.0 loss ratio
# Prebias
if prebias: