-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A problem about calculating confusion matrices #13508
Comments
👋 Hello @SwustLiC, thank you for your interest in YOLOv5 🚀! Your detailed description regarding the confusion matrix behavior is much appreciated. To help us debug and respond effectively, could you kindly provide a minimum reproducible example (MRE)? This will allow us to replicate the issue on our side and better understand the behavior you've described. For reference:
If you're curious about how to get started or need additional context, please visit our ⭐️ Tutorials, where you'll find helpful resources such as Hyperparameter Evolution and guides for Custom Data Training. RequirementsEnsure that your environment meets the following: git clone https://github.com/ultralytics/yolov5 # clone
cd yolov5
pip install -r requirements.txt # install EnvironmentsYOLOv5 is verified in the following environments and could help to test for consistency:
CI Status
Please note that this is an automated response to assist you quickly 😊. An Ultralytics engineer will follow up with you soon to provide further guidance. |
detections: tensor([[9.8200e+02, 9.5500e+02, 1.1070e+03, 1.0460e+03, 9.1230e-01, 3.0000e+00]]) |
@SwustLiC the current logic intentionally counts unmatched predictions as background (FP) only when there are existing matches ( |
Search before asking
YOLOv5 Component
No response
Bug
in yolov5/utils/metics.py
class ConfusionMatrix:
"""Generates and visualizes a confusion matrix for evaluating object detection classification performance."""
When the detection box does not match with gt, that is, when iou is 0, the detection box is not calculated into fp. Is this a special design or a bug. The confusion matrix in YOLOV11 is not quite the same
Environment
No response
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: