updates
This commit is contained in:
parent
0b8a28e3dd
commit
a95e47533a
1
test.py
1
test.py
|
@ -69,6 +69,7 @@ def test(
|
||||||
inf_out, train_out = model(imgs) # inference and training outputs
|
inf_out, train_out = model(imgs) # inference and training outputs
|
||||||
|
|
||||||
# Compute loss
|
# Compute loss
|
||||||
|
if hasattr(model, 'hyp'): # if model has loss hyperparameters
|
||||||
loss_i, _ = compute_loss(train_out, targets, model)
|
loss_i, _ = compute_loss(train_out, targets, model)
|
||||||
loss += loss_i.item()
|
loss += loss_i.item()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue