You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the YOLOv5 issues and discussions and found no similar questions.
Question
Hello!
I executed the val.py command, and received the following results:
And when I checked my Confusion Matrix, it's showing some weird results and a weird scale:
I don't get it why TP is 1.0 and FP is 1.0, can someone help me how can I interpret these results? And somehow fix the scale?
I tried to use conf_thres=0.25 and iou_thres=0.45 to see if my val.py results matches somehow the TP, since it's informed here (#1665) as the default values for Confusion Matrix.
Additional
FYI: my class is ALL (Acute Lymphoblastic Leukemia) 😅
If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.
If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available.
YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), validation (val.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit.
Ok apparently my Confusion Matrix is right, I checked all predicted images and my model doesn't predicted FNs, only FPs, and since I have only one class, everything went to background FP 🤔
So I think I only have the problem with the scale in Confusion Matrix now
@llucasreis good news 😃! Your original issue may now be fixed ✅ in PR #6638. Nan values were preventing a correct lower threshold for the Seaborn Heatmap colorbar, after update:
To receive this update:
Git – git pull from within your yolov5/ directory or git clone https://github.com/ultralytics/yolov5 again
PyTorch Hub – Force-reload model = torch.hub.load('ultralytics/yolov5', 'yolov5s', force_reload=True)
Docker – sudo docker pull ultralytics/yolov5:latest to update your image
Thank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀!
Activity
github-actions commentedon Feb 12, 2022
👋 Hello @llucasreis, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution.
If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.
If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available.
For business inquiries or professional support requests please visit https://ultralytics.com or email support@ultralytics.com.
Requirements
Python>=3.7.0 with all requirements.txt installed including PyTorch>=1.7. To get started:
Environments
YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
Status
If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), validation (val.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit.
llucasreis commentedon Feb 12, 2022
Ok apparently my Confusion Matrix is right, I checked all predicted images and my model doesn't predicted FNs, only FPs, and since I have only one class, everything went to background FP 🤔
So I think I only have the problem with the scale in Confusion Matrix now
[-]Confusion Matrix with weird ticklabels [/-][+]Confusion Matrix with weird scale[/+]llucasreis commentedon Feb 13, 2022
This code reproduces this behavior:
glenn-jocher commentedon Feb 14, 2022
@llucasreis thanks for the code. I am able to reproduce. Will investigate.
Fix ConfusionMatrix scale `vmin=0.0`
Fix ConfusionMatrix scale `vmin=0.0` (#6638)
glenn-jocher commentedon Feb 14, 2022
@llucasreis good news 😃! Your original issue may now be fixed ✅ in PR #6638. Nan values were preventing a correct lower threshold for the Seaborn Heatmap colorbar, after update:
To receive this update:
git pullfrom within youryolov5/directory orgit clone https://github.com/ultralytics/yolov5againmodel = torch.hub.load('ultralytics/yolov5', 'yolov5s', force_reload=True)sudo docker pull ultralytics/yolov5:latestto update your imageThank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀!
llucasreis commentedon Feb 15, 2022
Thank you very much! 😄 @glenn-jocher
Update Neuralmagic-YoloV5 integration to v6.1 (#29)
Fix ConfusionMatrix scale `vmin=0.0` (ultralytics#6638)
Fix ConfusionMatrix scale `vmin=0.0` (#6638)
Fix ConfusionMatrix scale `vmin=0.0` (#6638)