Skip to content

Commit

Permalink
Compute loss on final val (#5017)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Sep 30, 2021
1 parent b20e381 commit 89a6e9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
save_json=is_coco,
verbose=True,
plots=True,
callbacks=callbacks) # val best model with plots
callbacks=callbacks,
compute_loss=compute_loss) # val best model with plots

callbacks.run('on_train_end', last, best, plots, epoch)
LOGGER.info(f"Results saved to {colorstr('bold', save_dir)}")
Expand Down

0 comments on commit 89a6e9f

Please sign in to comment.