tomrb's picture
initial yolov8to
ab854b9

A newer version of the Gradio SDK is available: 5.12.0

Upgrade
metadata
description: >-
  Explore how to use the on-train, on-validation, on-pretrain, and on-predict
  callbacks in Ultralytics. Learn to update params, save models, and add
  integration callbacks.
keywords: >-
  Ultralytics, Callbacks, On-train, On-validation, On-pretrain, On-predict,
  Parameters update, Model saving, Integration callbacks

Reference for ultralytics/utils/callbacks/base.py

!!! note

Full source code for this file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/base.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/base.py). Help us fix any issues you see by submitting a [Pull Request](https://docs.ultralytics.com/help/contributing/) ๐Ÿ› ๏ธ. Thank you ๐Ÿ™!

::: ultralytics.utils.callbacks.base.on_pretrain_routine_start




::: ultralytics.utils.callbacks.base.on_pretrain_routine_end




::: ultralytics.utils.callbacks.base.on_train_start




::: ultralytics.utils.callbacks.base.on_train_epoch_start




::: ultralytics.utils.callbacks.base.on_train_batch_start




::: ultralytics.utils.callbacks.base.optimizer_step




::: ultralytics.utils.callbacks.base.on_before_zero_grad




::: ultralytics.utils.callbacks.base.on_train_batch_end




::: ultralytics.utils.callbacks.base.on_train_epoch_end




::: ultralytics.utils.callbacks.base.on_fit_epoch_end




::: ultralytics.utils.callbacks.base.on_model_save




::: ultralytics.utils.callbacks.base.on_train_end




::: ultralytics.utils.callbacks.base.on_params_update




::: ultralytics.utils.callbacks.base.teardown




::: ultralytics.utils.callbacks.base.on_val_start




::: ultralytics.utils.callbacks.base.on_val_batch_start




::: ultralytics.utils.callbacks.base.on_val_batch_end




::: ultralytics.utils.callbacks.base.on_val_end




::: ultralytics.utils.callbacks.base.on_predict_start




::: ultralytics.utils.callbacks.base.on_predict_batch_start




::: ultralytics.utils.callbacks.base.on_predict_batch_end




::: ultralytics.utils.callbacks.base.on_predict_postprocess_end




::: ultralytics.utils.callbacks.base.on_predict_end




::: ultralytics.utils.callbacks.base.on_export_start




::: ultralytics.utils.callbacks.base.on_export_end




::: ultralytics.utils.callbacks.base.get_default_callbacks




::: ultralytics.utils.callbacks.base.add_integration_callbacks