About Yolov8 and confusion matrix

Hello everyone!
I’m trying to understand yolov8. I trained a model with dataset, but I think it is generated from confusion matrix, train and validation part. I want to generate a confusion matrix from my test data. I couldn’t find how to do this. I also have a hard time understanding this part of how it generates the confusion matrix. In addition, although the my class number is 2, it produces a 3*3 matrix with the background. How do I prevent this?

1 Like