updates
This commit is contained in:
parent
59de209ab2
commit
7ef7501c36
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue