This commit is contained in:
Glenn Jocher 2019-10-12 11:22:50 +02:00
parent 171f25cfc6
commit 5afd90c900
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ def compute_loss(p, targets, model): # predictions, targets, model
# 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)]
if 'default' in arc: # seperate obj and cls
if 'default' in arc: # separate obj and cls
lobj += BCEobj(pi[..., 4], tobj) # obj loss
elif 'BCE' in arc: # unified BCE (80 classes)