The COCO dataset (Microsoft Common Objects in Context) is a large collection of everyday Flickr photos annotated by crowdworkers for object detection, segmentation and captioning. The COCO 2017 release labels 80 object categories, while the original paper defines 91. COCO’s classes for road scenes include person, bicycle, car, motorcycle, bus, train, truck, traffic light, fire hydrant and stop sign. Roboflow recommends starting from COCO-pretrained weights for most new projects. COCO is not a driving dataset.
Why the COCO Paper Lists 91 Categories but the Dataset Ships 80
COCO’s category list came out of a documented selection process. The goal was entry-level everyday objects that crowd workers could label in volume, not coverage of everything a camera might see. The authors built a candidate list by combining the PASCAL VOC categories, a subset of the 1,200 most frequently used words for visually identifiable objects, and objects named by children aged 4 to 8 asked to name everything they saw indoors and outdoors. The result was 272 candidates. The co-authors voted on each one from 1 to 5, weighing how common it was, how useful for practical applications and how distinct from other categories, and the final pick kept the number of categories per super-category (animals, vehicles, furniture and so on) balanced.
Two hard filters followed. Categories for which collecting more than 5,000 instances looked difficult were removed, and every PASCAL VOC category was kept so the new dataset stayed backwards compatible. The authors also chose to label only “things” (objects with countable instances, such as person, chair or car) and no “stuff” (amorphous regions such as sky, street or grass), because their main interest was precise localisation of individual instances. That left 91 categories in 11 super-categories.
The 2014 release then shrank to 80, because the authors did not collect segmentations for 11 of the 91:
| Omitted category | Reason given in the paper |
|---|---|
| hat, shoe, eyeglasses | too many instances |
| mirror, window, door, street sign | ambiguous and difficult to label |
| plate | confusion with bowl |
| desk | confusion with dining table |
| blender, hair brush | too few instances |
The 2014 and 2017 releases use the same 80 classes, with the same 11 missing from both, and these are called “the COCO 80 classes”.
If you need a source to cite, use Lin et al.’s original COCO paper. Its appendix lists all 272 candidates and marks the 91 selected and the 11 omitted from the 2014 release. Be clear about what the paper gives you: the criteria, the vote ranking and the reasons for the 11 omissions. Also state which release you mean, because the paper’s 91 and the released 80 differ.
Why COCO Has “cell phone” but No Helmet, and How Larger Taxonomies Differ
COCO’s taxonomy was built to study everyday scenes with entry-level object labels. COCO labels whole people, and none of the 80 classes is a face or a helmet. For a slide: COCO chose objects that were common, entry-level and frequent enough to collect at scale.
COCO has fewer categories than ImageNet but more instances per category, which the authors expected to help models learn precise 2D localisation. It also averages 7.7 object instances per image, against 3.0 for ImageNet and 2.3 for PASCAL. The authors of a unified-detector study describe COCO’s annotations for its 80 common classes as balanced. They contrast it with Objects365, which has 5× more images, and Open Images, which is 18× larger. Both larger sets have natural, imbalanced class distributions: their top 20% of classes have roughly 19× and 20× more images than COCO’s, and their bottom 20% have fewer images than COCO’s. LVIS reuses COCO’s images but targets over 1,000 entry-level categories with a long tail of rare classes, ending at 1,203 categories that include all 80 COCO ones.
The decision logic follows from those design choices. If your target classes fall inside COCO’s 80, COCO is the natural base. If you need a broader or finer everyday vocabulary, look at LVIS, Objects365 or Open Images, accepting their long tails. If your classes are safety-specific (helmets, high-visibility vests, faces for privacy masking), plan for a custom dataset and check the current class list of any larger taxonomy before assuming it covers them. These comparisons go stale as datasets are revised, so date them.
Which COCO Dataset Classes Cover Road Scenes, and What They Leave Out
The cocoTraffic project picked these COCO classes for its traffic subset: traffic light, car, truck, bus, motorcycle, bicycle, person, dog, cat, stop sign, fire hydrant and train. Street sign was one of the 11 categories dropped as ambiguous. For comparison, the Mapillary Traffic Sign Dataset covers more than 300 manually annotated sign classes across 100K street-level images. Stuff such as street is absent by design, since COCO labels only things.
Traffic light is a single class, which the cocoTraffic project refined into red, green and not-applicable. The same NeuralCeption analysis found that 6.9% of COCO’s traffic light annotations (927 of 13,521) were mislabelled. Cityscapes records street scenes in 50 cities, with 5,000 images finely annotated at pixel level and 20,000 coarsely. BDD100K has 100K driving videos and 10 tasks, with geographic, environmental and weather diversity.
Does COCO Count a Pickup as a Car or a Truck?
The sources do not settle this. COCO uses entry-level labels. The COCO-ReM authors found 410 pairs of near-duplicate masks in the 2017 validation set that often segment the same object under different labels, such as armchairs as both chair and couch and duffel bags as both suitcase and backpack. They traced this to the lack of a cross-category de-duplication step. So do not assume neighbouring vehicle classes are labelled consistently. Inspect how train2017 labels the pickups in your sample, then write your own rule into your labelling guidelines rather than inheriting COCO’s.
The COCO Annotation Format, and Why Teams Reuse It for Their Own Labels
A COCO dataset is a JSON file with five sections: info, licenses, images, annotations (bounding boxes and masks) and categories. COCO allows a separate JSON file for training, testing and validation. Each annotation’s bbox gives the box around the object in pixel coordinates, and each instance is paired with one label from the category list. Annotations cover bounding boxes, segmentation masks and captions.
The paper’s 91-index numbering and the contiguous 80-index numbering both exist, and Ultralytics ships conversion functions in both directions, with no mapping for the 11 dropped IDs. Its COCO-to-YOLO converter maps 91 IDs to 80 by default. Check the mapping before trusting any per-class number. Our guide to the COCO bounding-box annotation format goes through the fields in more detail.
One reason to reuse the format for your own labels is that converters such as Ultralytics’ COCO-to-YOLO tool already read it. Arm’s published subset, for example, produces its YOLO label files by mapping category IDs and converting box coordinates. Our piece on how COCO annotations feed a perception eval harness covers reusing COCO-style evaluation on a private dataset.
COCO 2017 Splits, and Whether the Licence Allows a Commercial Product
COCO 2017 splits into train2017 with 118,287 images, val2017 with 5,000 and test2017 with 20,288 test-dev images. Test-dev labels are withheld, so only train and val come with annotations. The COCO-Stuff authors count a further 20K test-challenge images, for 164K images in total. The 2014 release used a different split: 82,783 training, 40,504 validation and 40,775 test images. When the split was built, the authors removed near-duplicates and grouped images by photographer and date to reduce leakage between splits. If you tune hyperparameters against it, you need another set for the number you report.
The licence has two layers. The COCO Consortium licenses the annotations under Creative Commons Attribution 4.0. It does not own the images, and their use must follow the Flickr Terms of Use. A 2021 licence-compliance study of six image datasets (arXiv:2111.02374) judged that commercial use of COCO’s images together with its annotations might lead to a potential licence violation. On the study’s reading, using only the annotations commercially is allowed if you link to the licence, keep the copyright notice and do not use the annotations to endorse your product. The study also found that none of the licences it examined explicitly grants the right to commercialise a model trained on the data. For a commercial automotive product, put the question to counsel before COCO-trained weights reach a shipped unit.
Is COCO Enough to Train or Validate a Driving Perception Model?
No. COCO is a pretraining starting point, and it cannot validate a driving model on its own. The images are everyday photos gathered from Flickr. The labels also have documented flaws. Inspecting thousands of COCO 2017 masks, the COCO-ReM authors found imprecise boundaries, non-exhaustive annotation and mislabelled masks. The near-duplicate pairs make up about 2.3% of validation instances. Their re-annotated training set has 1.09M masks against 860K in COCO 2017, which shows how many instances the original left unlabelled. For 11 categories, such as dining table and scissors, models score lower on the cleaner masks, because COCO 2017’s training labels taught them biases such as including occluding objects.
This matters for the metric too. COCO AP averages per-category scores over all 80 classes at ten IoU thresholds, so check the per-class scores your application depends on. Our explainer on how mean average precision scores object detectors covers the arithmetic. More broadly, off-the-shelf models that work in demos fail in production at edge cases, lighting conditions and throughput requirements.
Fine-Tuning a COCO Checkpoint Versus Training on a Custom Taxonomy
Fine-tune a COCO-pretrained checkpoint when most of your target classes overlap COCO’s, or when time and labelled data are short. When the imagery is far from COCO’s everyday photos, freeze nothing, or use two-stage fine-tuning so the backbone can adapt. TechnoLynx then builds the fine-tuning pipeline and validates it, including a regression check on the original COCO classes.
Weight transfer is what makes fine-tuning faster and less data-hungry. Fine-tuning starts from learned weights instead of random initialisation, and Ultralytics says it converges on custom data in a fraction of the time training from scratch takes. If your dataset has the same number of classes as COCO, 100% of the weights transfer, detection head included. How many layers to freeze depends on how close your domain is and how much data you have:
| Your situation | Ultralytics freeze guidance | What to watch |
|---|---|---|
| Large dataset, domain similar to COCO | freeze none (default) | enough data to adapt all layers without overfitting |
| Small dataset, similar domain | freeze=10 | backbone preserved, fewer trainable parameters |
| Very small dataset | freeze=23 (head only) | lowest overfitting risk, least adaptation |
| Domain far from COCO | freeze none | backbone features may not transfer well |
For domains far from COCO, Ultralytics describes two-stage fine-tuning as particularly useful. First freeze the backbone and train the neck and head, then unfreeze everything at a lower learning rate, so the backbone can adapt without destabilising training. One risk is catastrophic forgetting. A model fine-tuned only on new data loses the classes it already knew, and merging examples of the original classes into the fine-tuning set is the only reliable prevention.
How much data a new class needs is a question the sources only partly answer. Roboflow suggests about 50 to 100 diverse images for a first version of a narrow, visually distinct class. It also says a production system may need hundreds or thousands, and more again for small, similar or heavily occluded objects. Treat those figures as a vendor’s starting guidance. In our judgement, the real number depends on the variety of imaging conditions, augmentation and annotation consistency.
Running the Stock and Fine-Tuned Detector Side by Side
The most useful thing to build is a pair: the stock COCO checkpoint as a baseline, and your fine-tuned version, both scored on the same held-out real samples. The gap between them shows what pretrained coverage gave you and what you had to add. TechnoLynx sets up the annotation workflow feeding the fine-tune and validates the fine-tuned model against held-out real samples. TechnoLynx confirms the base model against the hardware and timeline and tunes the pipeline on the target device.
A COCO-pretrained YOLO checkpoint such as YOLOv7 plus a fine-tuning stage is a sensible base, though newer families may suit a project that needs current tooling. Check the model licence as well as the dataset licence. Roboflow notes that recent YOLO releases ship under AGPL-3.0 by default, which can require related software to be open-sourced, while RF-DETR’s Nano through Large detection models use Apache 2.0. For the architecture trade-off itself, see our comparison of RT-DETR and YOLO for production inspection pipelines.
On a fixed timeline, size the labelled set for a new class like helmet to the annotation hours you have, and accept the overfitting risk that comes with a small set. Pick an annotation tool for its COCO export and its fit with your existing infrastructure and licensing. CVAT and Label Studio both export COCO-format annotations. When the choice extends to the edge device itself, LynxBenchAI’s published results show how each device runs the public PyTorch stack that custom models also run on. That makes them broadly indicative for your model, but they do not measure your own workload.
Freezing the Model and Silicon Choice Before a Fixed Field Date
When a deployment has a hard date (a growing season, a vehicle programme gate), plan backwards from it. Fix the minimum field-test window first, then the integration window. Whatever time is left is your evaluation budget, and the start of integration is the latest point at which the model and silicon choice can be frozen. TechnoLynx’s AI Porting & Deployment Pack takes the chosen detector onto the target edge hardware within that window. It starts by fixing the deadline and sizing the integration and test windows, then ports, optimises and validates the model on the actual device.
Over six months, front-load the decision. Evaluate the candidate architecture and silicon combinations in parallel on the real target rather than one after another, and start from COCO-pretrained weights so training time does not eat into integration. If the evaluation budget is too short for a proper trade-off study, cut the candidate list early. A narrower comparison finished on time beats a full one that pushes the freeze into the test window. Three risks shrink the window further. The first is underestimating field testing. The second is compressing evaluation too far. The third is delay from hardware procurement or limited field access.
Who Can Take a COCO-Pretrained Detector Onto Our Edge Hardware Before the Deadline?
TechnoLynx takes a COCO-pretrained detector to a validated model running on your edge device, through its automotive AI engineering. TechnoLynx scopes the class overlap and data, fine-tunes with a regression check on the original classes, then ports and optimises for the target hardware. Building in-house makes sense when you already have ML and embedded engineers with time to spare. A specialist pays off when the deadline is fixed and the porting and validation work is unfamiliar. When choosing a partner, ask how they will validate against your real samples, not COCO val. Ask who owns the pipeline afterwards, and whether they will flag the dataset and model licence questions early. The engagement runs through the AI Porting & Deployment Pack, starting with fixing the deadline and sizing the test and integration windows.
This engagement does not suit teams that only need labelling labour; an annotation service fits that better. It also does not provide legal sign-off on dataset licences. Engineering work cannot replace counsel there.
What to Cite for COCO in a Model Card
Cite the Lin et al. paper for the dataset and its category selection, and name the release (2017), the class indexing (80-index or the paper’s 91) and the splits you trained and evaluated on. The model cards framework of Mitchell et al. (FAT* 2019) gives you a citable structure for the rest. Model cards are short documents that state the context a model is intended for, how its performance was evaluated and its benchmarked results across relevant conditions. For a COCO-derived detector, the honest entries are those this article has already raised. The annotations are CC BY 4.0 and the images fall under Flickr terms. COCO 2017 masks have known quality problems, documented by COCO-ReM. And COCO has no street sign class.
FAQ
What Does COCO Stand For?
COCO stands for Common Objects in Context. The name reflects the fact that its images show objects inside everyday scenes rather than isolated on their own.
Are YOLO Models Trained on the COCO Dataset?
Many public YOLO checkpoints are trained on Microsoft COCO, whose categories include people, vehicles, animals and household objects. They cannot reliably detect custom products, manufacturing defects or industry-specific classes without fine-tuning.
How Many Images Are in the COCO Dataset?
Ultralytics describes COCO as 330K images, of which 200K have annotations. The original paper reports 2.5 million labelled instances in 328,000 images.