Replies: 2 comments
-
👋 Hello @ksv87, thank you for your interest in Ultralytics and for raising this topic 🚀! We recommend checking out the Ultralytics Docs for new users; it contains information on various usage scenarios, including both Python and CLI options. If you suspect the AP calculation might be a 🐛 bug, could you please provide a minimum reproducible example to help us better understand the issue? This will be quite helpful for our team to reproduce and investigate the matter directly. For a custom calculation or theoretical ❓ question, please feel free to provide insights, code snippets, or examples you have encountered, such as the ones you've shared in your message. This additional context is valuable to us. 😊 Join the Ultralytics community where you feel most comfortable. For immediate discussions, you can connect on Discord 🎧. If you prefer detailed discussions, our Discourse platform is a great choice, or explore shared experiences in our Subreddit. UpgradeTo ensure any existing issues aren't already resolved, consider upgrading to the latest pip install -U ultralytics EnvironmentsYou may run YOLO in these up-to-date verified environments (which come pre-installed with all dependencies including CUDA, CUDNN, Python, and PyTorch):
StatusAs shown, if this badge is green, all Ultralytics CI tests are passing, confirming the correct operation of all YOLO Modes and Tasks on macOS, Windows, and Ubuntu within a 24-hour cycle and upon every commit. This is an automated response, and an Ultralytics engineer will join the discussion shortly to assist further. 💪 |
Beta Was this translation helpful? Give feedback.
-
@ksv87 thank you for your feedback. The AP calculation in our code follows the COCO evaluation metrics. For a detailed explanation, please refer to our documentation: https://docs.ultralytics.com/guides/yolo-performance-metrics/. |
Beta Was this translation helpful? Give feedback.
-
Why is AP considered this way? The P-R curve calculation doesn't look right
ultralytics/ultralytics/utils/metrics.py
Lines 514 to 516 in b8c90ba
Correctly it should be like this
Calculation example https://pyimagesearch.com/2022/05/02/mean-average-precision-map-using-the-coco-evaluator/
Beta Was this translation helpful? Give feedback.
All reactions