Skip to content

WandB integration and confusion matrix #21646

Answered by glenn-jocher
CyrusAddy asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @CyrusAddy — W&B logs the confusion matrix as an image when validation plots are enabled; enable W&B and plots, then train or run a val pass to push it:

yolo settings wandb=True
yolo train model=yolo11n.pt data=your.yaml plots=True

or for an existing model

yolo val model=path/to/best.pt data=your.yaml plots=True

You’ll see confusion_matrix_normalized under Images in the run; this is produced by the confusion matrix plot and logged via the W&B callback that uploads validator.plots at epoch/end of training. Details are in the YOLO + Weights & Biases integration guide and the W&B callback reference.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@glenn-jocher
Comment options

Answer selected by Y-T-G
@CyrusAddy
Comment options

@CyrusAddy
Comment options

@glenn-jocher
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested devops GitHub Devops or MLops
3 participants