Skip to content
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

How to solve the YOLO original model mAP50-95 results the more you run the better #13507

Open
1 task done
lroy615 opened this issue Feb 12, 2025 · 1 comment
Open
1 task done
Labels
detect Object Detection issues, PR's question Further information is requested

Comments

@lroy615
Copy link

lroy615 commented Feb 12, 2025

Search before asking

Question

Training the original YOLOv5s model results ran about three or four times, each time the results are better and better, precison/recall/mAP50 values are almost the same each time, so the comparison is to look at the value of mAP50-95, but the original model the value of this value is better and better, the first 100 rounds of training of the mAP50-95 results are 0.86 or so, the latest The first 100 rounds of training the mAP50-95 result is 0.86 or so, the latest run is 0.89 or so, but I want to reproduce the first result, because my improved model although the result is trained, precison/recall/mAP50 value is almost the same as the original, it is already 0.98 or so, but the mAP50-95 run is 0.87 or so, I would like to ask how to solve this problem, can you help I reproduce the first result.

Additional

No response

@lroy615 lroy615 added the question Further information is requested label Feb 12, 2025
@glenn-jocher glenn-jocher added the detect Object Detection issues, PR's label Feb 12, 2025
@glenn-jocher
Copy link
Member

👋 Hello @lroy615, thank you for reaching out and for your interest in YOLOv5 🚀!

It seems you have a detailed question regarding training reproducibility and mAP50-95 results across multiple runs. To assist you better and debug this behavior effectively, we kindly ask that you provide the following:

  • A minimum reproducible example (MRE). This includes your training command, hyperparameter modifications, and any changes you’ve made to the codebase, if applicable. Please also include details on the dataset you are using (even just general information, such as dataset size and structure).
  • Logs or metrics from your training runs, if available, that highlight the observed behavior of mAP50-95 improving with each run.
  • Your current random seed setting (if any), as randomization can impact training reproducibility.

If you're aiming to reproduce a specific past result, you may want to revisit the conditions of that run, including software versions, random seed settings (if manually set), and training environment configuration.

To get started with YOLOv5 or ensure you have the required setup, please follow these steps:

Requirements

Python>=3.8.0 with all requirements.txt installed, including PyTorch>=1.8. To set up YOLOv5:

git clone https://github.com/ultralytics/yolov5  # clone
cd yolov5
pip install -r requirements.txt  # install

Environments

YOLOv5 can be run in any of the following environments with dependencies including CUDA/CUDNN, Python, and PyTorch preinstalled:

Tutorials

You may also find the following resources helpful:

Status

YOLOv5 CI

If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify the proper operation of YOLOv5 training, validation, inference, export, and benchmarks across macOS, Windows, and Ubuntu daily.

🌟 This is an automated response. Rest assured, an Ultralytics engineer will follow up to assist you further. We look forward to your updates and additional details!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
detect Object Detection issues, PR's question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants