updates
This commit is contained in:
parent
947ee02115
commit
aeca7f72c4
|
@ -265,7 +265,7 @@ def compute_loss(p, targets): # predictions, targets
|
|||
tconf[b, a, gj, gi] = 1 # conf
|
||||
|
||||
lxy += (k * 8) * MSE(torch.sigmoid(pi[..., 0:2]), txy[i]) # xy loss
|
||||
lwh += (k * 4) * MSE(pi[..., 2:4], twh[i]) # wh yolo loss
|
||||
lwh += (k * 1) * MSE(pi[..., 2:4], twh[i]) # wh yolo loss
|
||||
# lwh += (k * 4) * MSE(torch.sigmoid(pi[..., 2:4]), twh[i]) # wh power loss
|
||||
lcls += (k * 1) * CE(pi[..., 5:], tcls[i]) # class_conf loss
|
||||
|
||||
|
|
Loading…
Reference in New Issue