Reference for ultralytics/utils/callbacks/dvc.py
Note
This file is available at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/dvc.py. If you spot a problem please help fix it by contributing a Pull Request 🛠️. Thank you 🙏!
ultralytics.utils.callbacks.dvc._log_images
Logs images at specified path with an optional prefix using DVCLive.
Source code in ultralytics/utils/callbacks/dvc.py
ultralytics.utils.callbacks.dvc._log_plots
Logs plot images for training progress if they have not been previously processed.
Source code in ultralytics/utils/callbacks/dvc.py
ultralytics.utils.callbacks.dvc._log_confusion_matrix
Logs the confusion matrix for the given validator using DVCLive.
Source code in ultralytics/utils/callbacks/dvc.py
ultralytics.utils.callbacks.dvc.on_pretrain_routine_start
Initializes DVCLive logger for training metadata during pre-training routine.
Source code in ultralytics/utils/callbacks/dvc.py
ultralytics.utils.callbacks.dvc.on_pretrain_routine_end
Logs plots related to the training process at the end of the pretraining routine.
ultralytics.utils.callbacks.dvc.on_train_start
ultralytics.utils.callbacks.dvc.on_train_epoch_start
Sets the global variable _training_epoch value to True at the start of training each epoch.
ultralytics.utils.callbacks.dvc.on_fit_epoch_end
Logs training metrics and model info, and advances to next step on the end of each fit epoch.
Source code in ultralytics/utils/callbacks/dvc.py
ultralytics.utils.callbacks.dvc.on_train_end
Logs the best metrics, plots, and confusion matrix at the end of training if DVCLive is active.