This commit is contained in:
Glenn Jocher 2019-12-27 12:14:01 -08:00
parent 59de209ab2
commit 7ef7501c36
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ def compute_loss(p, targets, model): # predictions, targets, model
lcls *= h['cls']
if red == 'sum':
lbox *= 3 / ng
lobj *= 3 / np
lobj *= 3 / np * 2
lcls *= 3 / ng / model.nc
loss = lbox + lobj + lcls