# Why you should stop chasing COCO AP I learned object detection on COCO, like most people in this field. For years every detection paper reported COCO val AP, and so did I. It was useful: everyone tested on the same 5,000 images, so you could compare a new model against all the old ones with one number. Faster R-CNN, RetinaNet, DETR and every YOLO version were all compared this way. I don't optimize for it anymore. This post is why. Full disclosure: I develop [mayaku](https://emrah.fr/mayaku/), a detection library, so I have a side in this. ### What a perfect model would score [COCO-ReM](https://cocorem.xyz) (Singh et al., ECCV 2024) is a corrected version of COCO val2017. Same 5,000 images, but the masks are refined, duplicates are removed and missing objects are added: 6,135 from LVIS and about a thousand by hand. I took these corrected labels, treated them as model predictions with confidence 1.0, and evaluated them against the original COCO val2017 annotations with pycocotools. | COCO-ReM scored against COCO val2017 | AP | AP50 | AP75 | AP_S | AP_M | AP_L | |---|---:|---:|---:|---:|---:|---:| | Box | 63.0 | 86.1 | 70.6 | 53.4 | 68.4 | 74.3 | | Mask | 52.0 | 80.9 | 56.2 | 43.6 | 58.3 | 62.1 | 63.0 box AP. At IoU 0.5, 4,314 of the corrected objects have no match in COCO, so each one counts as a false positive. Small objects lose the most.
The same COCO val2017 image annotated by COCO and by COCO-ReM: COCO has one mask over four oranges, COCO-ReM has one mask per orange
Left: COCO, one mask covers four oranges. Right: COCO-ReM, one mask per orange. A model that finds each orange is penalized on COCO. Photo: Artondra Hall, CC BY 2.0 (COCO val2017 #290081).
Take this number with care. It's hard to say how much of the gap is COCO's errors and how much is just different labeling choices, and COCO-ReM is still made by people, so it has its own human bias. COCO-ReM is not independent though, most of its annotations are COCO's own annotations, refined. [Sama-COCO](https://arxiv.org/abs/2311.02709) (Zimmermann et al., 2023) is: a different team re-annotated every COCO image from scratch. Its authors scored the original COCO labels against it and got 47.0 box AP, and 48.3 the other way round. Next to the leaderboard: | | Box AP on COCO | |---|---:| | Two independent human annotations (Sama-COCO) | ~48 | | Corrected COCO labels (COCO-ReM, my run) | 63.0 | | RF-DETR 2XL, first real-time model over 60 | 60.1 | | Co-DINO ViT-L, best result since 2022 (test-dev) | 66.0 | So the top models agree with COCO's annotators more than another careful annotation team does. Above about 60 AP, part of every extra point comes from learning how COCO was labeled: when a group of people got one crowd box, which half-hidden chair was skipped, how loose the masks are. That doesn't make a model better on your images. ### The labels The errors are documented: - Cleanlab's [ObjectLab](https://arxiv.org/abs/2309.00832) estimates about 5% of COCO 2017 images have a missed object, 3% a badly placed box and 0.7% a wrong class. - The [COCO-ReM](https://arxiv.org/abs/2403.18819) authors found about 900 poor masks and 410 near-duplicate annotation pairs in val2017. - The [LVIS](https://arxiv.org/abs/1908.03195) team had experts redraw COCO masks. COCO masks matched the experts at a mean IoU of 0.83–0.87. Two experts matched each other at 0.91–0.95. Fixing the training labels doesn't raise the score either. [Ma et al.](https://openaccess.thecvf.com/content/CVPR2022W/VDU/html/Ma_The_Effect_of_Improving_Annotation_Quality_on_Object_Detection_Datasets_CVPRW_2022_paper.html) re-annotated five COCO categories more carefully, trained on the cleaner labels, and the COCO score went down. ### The images "val2017" is the year of the split, not the images. All 5,000 val images were downloaded from Flickr between 14 and 25 November 2013, and many photos are older than that. Cars, phones, TVs and laptops look like 2013 or earlier. They are also small. Flickr gave them at 640 px on the long side, and 4,097 of the 5,000 are exactly 640. The median image is 0.27 megapixels, and 42% of the objects are smaller than 32×32 px. 768×768 has 44% more pixels than 640×640. 960×960 has +125% more pixels. From a modern camera or video stream that is real extra detail, and a model that uses it should do better. On COCO, running at 960 only upscales a 640 image. There is no extra detail to find, so COCO can't show the benefit of higher resolution, and 640 stays the default. ### COCO gains don't carry over YOLO26n gets [40.9 AP on COCO](https://docs.ultralytics.com/models/yolo26/) with 2.4M parameters, which is impressive. YOLO26s gets 48.6 with 9.5M. A 7.7 AP gap. I fine-tuned both on the 100 datasets of [RF100-VL](https://rf100-vl.org/) for the [mayaku benchmark](https://emrah.fr/mayaku/#fine-tuning-benchmark-rf100-vl). There the gap was 3.0 (54.8 vs 57.8). Most of the COCO difference didn't show up on aerial, medical, industrial or document images. The [RF100-VL authors](https://arxiv.org/abs/2505.20612) saw the same across model families: "models that achieved higher performance on COCO did not necessarily improve real-world performance on RF100-VL". They say newer models "may be overfitting to COCO". I can't show that COCO tuning hurts transfer. Most studies find that better benchmark scores still mean somewhat better transfer ([Kornblith et al., 2019](https://arxiv.org/abs/1805.08974); [Recht et al., 2019](https://arxiv.org/abs/1902.10811)). Kornblith also found that some tricks that add a little benchmark accuracy make the features much worse for transfer. So my claim is smaller: after some point, COCO AP stops telling you how a model will do on your own data. ### I don't trust COCO scores above 50–55 anymore I want to be careful here. The models aren't memorizing val, they never see it. And high scores aren't always fake: when the COCO-ReM authors re-scored 50 detectors on the corrected labels, every one went up, and the strongest models gained the most. Part of what COCO counts as their mistakes is COCO's mistakes. What I don't trust is how some of those points are earned: long training schedules, augmentations and thresholds tuned on COCO val, again and again. [COCO-O](https://arxiv.org/abs/2307.12730) found that longer training raised COCO AP with no gain in robustness, and the authors say it "may indicate over-fitting on the COCO test set". So above 50–55 a COCO score doesn't mean much to me on its own. I believe it after the model is fine-tuned on other data and still holds up. ### What I look at instead I still run COCO as a sanity check. If a model gets 20 AP there, something is broken. But +0.5 on COCO val is not progress for me anymore. I look at: - Fine-tuning AP across many domains. RF100-VL is the best public option I know: 100 datasets, each with its own classes. - Latency on real hardware, end to end ([more on that here](https://emrah.fr/post/latency-lies/)). - Native resolution. I don't know a widely used detection benchmark with recent, high-resolution images. LVIS uses the same 2013 COCO images, and RF100 resizes everything to 640. Until one exists, test at the resolution your camera gives you. ### Mayaku v4 This is where [mayaku](https://emrah.fr/mayaku/) is going: higher input resolution, and models judged by how they fine-tune, not by 5,000 images from 2013. v4 is coming. I'll publish its RF100-VL numbers at real resolutions with end-to-end latency, and the COCO score too.