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

Bug fix mAP0.5-0.95 #6787

Merged
merged 10 commits into from
May 20, 2022
Merged

Bug fix mAP0.5-0.95 #6787

merged 10 commits into from
May 20, 2022

Commits on Feb 26, 2022

  1. Improve mAP0.5-0.95

    Two changes provided
    1. Added limit on the maximum number of detections for each image likewise pycocotools
    2. Rework process_batch function
    
    Changes ultralytics#2 solved issue ultralytics#4251
    I also independently encountered the problem described in issue ultralytics#4251 that the values for the same thresholds do not match when changing the limits in the torch.linspace function.
    These changes solve this problem.
    
    Currently during validation yolov5x.pt model the following results were obtained:
    from yolov5 validation
                   Class     Images     Labels          P          R     mAP@.5 mAP@.5:.95: 100%|██████████| 157/157 [01:07<00:00,  2.33it/s]
                     all       5000      36335      0.743      0.626      0.682      0.506
    from pycocotools
     Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.505
     Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=100 ] = 0.685
    
    These results are very close, although not completely pass the competition issue ultralytics#2258.
    I think it's problem with false positive bboxes matched ignored criteria, but this is not actual for custom datasets and does not require an additional solution.
    Anton Lebedev committed Feb 26, 2022
    Configuration menu
    Copy the full SHA
    7028550 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2022

  1. Configuration menu
    Copy the full SHA
    1b54daf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f81dbe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7fd5324 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    915e56b View commit details
    Browse the repository at this point in the history
  5. Update val.py

    glenn-jocher committed May 19, 2022
    Configuration menu
    Copy the full SHA
    f93c111 View commit details
    Browse the repository at this point in the history
  6. Update val.py

    glenn-jocher committed May 19, 2022
    Configuration menu
    Copy the full SHA
    8ad0e2b View commit details
    Browse the repository at this point in the history
  7. Remove to device op

    glenn-jocher committed May 19, 2022
    Configuration menu
    Copy the full SHA
    b70facf View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    526135f View commit details
    Browse the repository at this point in the history
  9. Update val.py

    glenn-jocher committed May 19, 2022
    Configuration menu
    Copy the full SHA
    b8e4865 View commit details
    Browse the repository at this point in the history