Closed Vinicius-ufsc closed 2 years ago
π Hello @Vinicius-ufsc, 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.
Python>=3.7.0 with all requirements.txt installed including PyTorch>=1.7. To get started:
git clone https://github.com/ultralytics/yolov5 # clone
cd yolov5
pip install -r requirements.txt # install
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, validation, inference, export and benchmarks on MacOS, Windows, and Ubuntu every 24 hours and on every commit.
Search before asking
Question
I'm trying to reproduce the curves (PR) and the confusion matrix at max F1 score using the predictions from the model.
Those curves I'm referring are produced when I run:
To reproduce the curves I'm using the results.xyxyn of each image in test dataset (Dataset.yaml).
--getting a list of all predictions--
To get the predictions I'm using conf = 0.001 and IoU = 0.6, as it seems to be the default values ββin val.py
-- default values of val.py--
How can I reproduce those curves using the predictions?
I have tried with self made code to calculate P, R and PR curve, but can't get the same results
here what I have so far: https://github.com/Vinicius-ufsc/mean_average_precision
For the confusion matrix I have used the code from utils, still, I get different results.
Thank you.