updates
This commit is contained in:
parent
171f25cfc6
commit
5afd90c900
|
@ -356,7 +356,7 @@ def compute_loss(p, targets, model): # predictions, targets, model
|
||||||
# with open('targets.txt', 'a') as file:
|
# with open('targets.txt', 'a') as file:
|
||||||
# [file.write('%11.5g ' * 4 % tuple(x) + '\n') for x in torch.cat((txy[i], twh[i]), 1)]
|
# [file.write('%11.5g ' * 4 % tuple(x) + '\n') for x in torch.cat((txy[i], twh[i]), 1)]
|
||||||
|
|
||||||
if 'default' in arc: # seperate obj and cls
|
if 'default' in arc: # separate obj and cls
|
||||||
lobj += BCEobj(pi[..., 4], tobj) # obj loss
|
lobj += BCEobj(pi[..., 4], tobj) # obj loss
|
||||||
|
|
||||||
elif 'BCE' in arc: # unified BCE (80 classes)
|
elif 'BCE' in arc: # unified BCE (80 classes)
|
||||||
|
|
Loading…
Reference in New Issue