Catalog / Vision
MS COCO (2014)
330k everyday scenes with 1.5M labeled objects in 80 categories.
Why it matters
ImageNet asks "what is in this photo?"; COCO asks "where is every object?". Its cluttered, non-iconic scenes and its box AP metric became the yardstick for object detection (Faster R-CNN, YOLO, Mask R-CNN, DETR), and its captions helped start image captioning and vision-language models.
Get the data
# pip install -U huggingface_hub
hf download rafaelpadilla/coco2017 --repo-type dataset \
--revision refs/convert/parquet \
--local-dir cocofrom datasets import load_dataset # pip install datasets
ds = load_dataset("rafaelpadilla/coco2017", revision="refs/convert/parquet")
print(ds)import polars as pl
df = pl.read_parquet("hf://datasets/rafaelpadilla/coco2017@~parquet/default/val/*.parquet")
print(df.shape)This copy uses a loading script, so the snippets use the Hub's Parquet conversion (train + val, ~19 GB). The original zips are on cocodataset.org.
- Year
- 2014
- Creators
- Tsung-Yi Lin et al. (Microsoft and academic partners)
- Task
- Object detection, segmentation and captioning
- Size
- ~330k images, ~200k annotated
- Splits
- train2017 118,287 · val2017 5,000 · test2017 40,670
- Input
- RGB photo, typically 640 px on the long side
- Labels
- Boxes and masks for 80 object categories, 5 captions per image
- License
- Annotations CC BY 4.0; images under their Flickr licenses
- Paper
- Microsoft COCO: Common Objects in Context
Samples


















What one record actually looks like (raw JSON, row 983)
{
"image": {
"height": 640,
"src": "samples/coco/983-image.jpg",
"width": 427
},
"image_id": 445365,
"objects": {
"area": [
33136.68009999999,
49507.18924999999
],
"bbox": [
[
31.25,
247.07000732421875,
200.0399932861328,
392.92999267578125
],
[
186.97000122070312,
116.48999786376953,
240.02999877929688,
513.4400024414062
]
],
"id": [
595445,
595637
],
"iscrowd": [
false,
false
],
"label": [
25,
25
]
}
}Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.
Sampled 2026-11-07 from rafaelpadilla/coco2017 at revision 7d5136d
Worth knowing
- Boxes are stored as [x, y, width, height] in pixels, from the top-left corner. Many bugs come from assuming [x1, y1, x2, y2].
- The label list has 91 slots but only 80 are used; ids like "street sign" and "hat" were dropped, which is why category ids have gaps.
- The standard metric averages precision over IoU thresholds from 0.5 to 0.95, which rewards tight boxes.
- About 1% of annotations are "crowd" regions (a group of people or objects) handled specially in scoring.
Related datasets
- Pascal VOC: 2005–2012, 20 classes, the predecessorHugging Face ↗PASCAL VOC on this site →
- ADE20K: 2017, every pixel labeled, 150-class benchmarkHugging Face ↗ADE20K on this site →
- Flickr30k: 2014, 31k captioned photos, the captioning benchmark before COCO CaptionsHugging Face ↗Flickr30k on this site →
- LVIS: 2019, 1,200+ categories on COCO imageslvisdataset.org ↗
- Objects365: 2019, 365 categories, 638k images at releaseobjects365.org ↗
- Visual Genome: 2016, scene graphs on about half of COCO's imagesHugging Face ↗Visual Genome on this site →
- VQA v2: 2017, 1.1 million questions about COCO imagesHugging Face ↗VQA v2 on this site →
Landmark papers
- Faster R-CNN (2015)Faster R-CNN on this site →
- Deep Residual Learning for Image Recognition (ResNet) (2015)ResNet on this site →
- YOLO9000: Better, Faster, Stronger (YOLOv2) (2016)
- Feature Pyramid Networks for Object Detection (FPN) (2016)FPN on this site →
- Mask R-CNN (2017)Mask R-CNN on this site →
- Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour (2017)Large-minibatch SGD on this site →
- Focal Loss for Dense Object Detection (RetinaNet) (2017)RetinaNet on this site →
- Deep High-Resolution Representation Learning for Visual Recognition (HRNet) (2019)HRNet on this site →
- Momentum Contrast for Unsupervised Visual Representation Learning (MoCo) (2019)MoCo on this site →
- End-to-End Object Detection with Transformers (DETR) (2020)DETR on this site →
- High-Resolution Image Synthesis with Latent Diffusion Models (2021)Latent diffusion on this site →
- Masked Autoencoders Are Scalable Vision Learners (MAE) (2021)MAE on this site →
- Masked-attention Mask Transformer for Universal Image Segmentation (Mask2Former) (2021)Mask2Former on this site →
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows (Swin) (2021)Swin on this site →
- A ConvNet for the 2020s (ConvNeXt) (2022)ConvNeXt on this site →
- Flamingo: a Visual Language Model for Few-Shot Learning (Flamingo) (2022)Flamingo on this site →
- BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models (BLIP-2) (2023)BLIP-2 on this site →
- Visual Instruction Tuning (LLaVA) (2023)LLaVA on this site →
- Segment Anything (SAM) (2023)SAM on this site →
- PaliGemma: A versatile 3B VLM for transfer (PaliGemma) (2024)PaliGemma on this site →