Add pred, export and val callbacks (#126)
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
63c7a74691
commit
c6eb6720de
8 changed files with 176 additions and 57 deletions
|
|
@ -17,11 +17,11 @@ def on_batch_end(trainer):
|
|||
_log_scalars(trainer.label_loss_items(trainer.tloss, prefix="train"), trainer.epoch + 1)
|
||||
|
||||
|
||||
def on_val_end(trainer):
|
||||
def on_fit_epoch_end(trainer):
|
||||
_log_scalars(trainer.metrics, trainer.epoch + 1)
|
||||
|
||||
|
||||
callbacks = {
|
||||
"on_pretrain_routine_start": on_pretrain_routine_start,
|
||||
"on_val_end": on_val_end,
|
||||
"on_fit_epoch_end": on_fit_epoch_end,
|
||||
"on_batch_end": on_batch_end}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue