Revert loss head PR (#2873)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
6391c60089
commit
527a97759b
8 changed files with 335 additions and 327 deletions
|
|
@ -162,8 +162,7 @@ class BaseValidator:
|
|||
# Loss
|
||||
with dt[2]:
|
||||
if self.training:
|
||||
loss_items = model.loss(batch, preds)
|
||||
self.loss += loss_items[1]
|
||||
self.loss += trainer.criterion(preds, batch)[1]
|
||||
|
||||
# Postprocess
|
||||
with dt[3]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue