# PASCAL VOC (2005)

> The 20-class object-detection challenge that ran every year from 2005 to 2012.

Page: https://mralbu.github.io/ai-datasets/d/pascal-voc

## Key facts

- Category: Vision
- Task: Object detection, segmentation and classification
- Creators: Mark Everingham, Luc Van Gool, Chris Williams, John Winn, Andrew Zisserman
- Size: 11,540 images with 27,450 labeled objects (VOC2012 detection train + val)
- Splits: train 5,717, val 5,823
- Input: RGB photo from Flickr, typically 500 px on the long side
- Labels: Boxes for 20 classes (person, animals, vehicles, household objects)
- License: Annotations for research use; images under their Flickr licenses
- Paper: [The PASCAL Visual Object Classes (VOC) Challenge](https://doi.org/10.1007/s11263-009-0275-4)
- Homepage: http://host.robots.ox.ac.uk/pascal/VOC/
- Hugging Face: [TNILab/pascal_voc2012_det_train_val](https://huggingface.co/datasets/TNILab/pascal_voc2012_det_train_val)
- Sampled at Hub revision 9c22fd683717086d5dd5ec93a57ed1cdd5eca067 (2026-11-07)

## Why it matters

Before COCO, "detection" meant VOC. Its evaluation, a box counts if it overlaps the truth by at least 50% (IoU ≥ 0.5) and classes are scored by average precision, is still reported today as AP50. Deformable part models dominated it for years; then R-CNN (2014) used ImageNet-pretrained CNN features to reach 53.3% mAP on VOC2012, a jump that moved detection over to deep learning.

## Worth knowing

- The 20 classes: person; bird, cat, cow, dog, horse, sheep; aeroplane, bicycle, boat, bus, car, motorbike, train; bottle, chair, dining table, potted plant, sofa, tv/monitor.
- Objects marked "difficult" are ignored in scoring, so a model is not penalized for missing them.
- The VOC2007 test labels were released, so "VOC07 test" stayed a standard benchmark for years after the challenge ended. Later test sets were kept private.
- The original annotations are XML files with corner coordinates (xmin, ymin, xmax, ymax). This copy uses COCO-style [x, y, width, height].
- The challenge ended in 2012. Mark Everingham, who led it, died that year.

## Get the data

A community Parquet copy of the VOC2012 detection train/val set (~400 MB). The originals, with segmentation masks and VOC2007, are on the official site.

```bash
# pip install -U huggingface_hub
hf download TNILab/pascal_voc2012_det_train_val --repo-type dataset \
  --local-dir pascal-voc
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("TNILab/pascal_voc2012_det_train_val")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/TNILab/pascal_voc2012_det_train_val@~parquet/default/validation/*.parquet")
print(df.shape)
```

## Related datasets

- [MS COCO](https://huggingface.co/datasets/rafaelpadilla/coco2017): 2014, 80 classes in cluttered scenes, the successor (on this site: https://mralbu.github.io/ai-datasets/d/coco)
- [ADE20K](https://huggingface.co/datasets/1aurent/ADE20K): 2017, every pixel labeled across 150+ classes (on this site: https://mralbu.github.io/ai-datasets/d/ade20k)
- [ImageNet (ILSVRC)](https://www.image-net.org/challenges/LSVRC/): 2010–2017, ran its own detection track from 2013 (on this site: https://mralbu.github.io/ai-datasets/d/imagenet)

## Landmark papers

- [Object Detection with Discriminatively Trained Part-Based Models (DPM)](https://doi.org/10.1109/TPAMI.2009.167) (2010)
- [Rich Feature Hierarchies for Accurate Object Detection (R-CNN)](https://arxiv.org/abs/1311.2524) (2014)
- [SSD: Single Shot MultiBox Detector](https://arxiv.org/abs/1512.02325) (2016)

## Papers on this site that use it

- [R-CNN (2013)](https://mralbu.github.io/ai-datasets/p/rcnn.md): Showed that features from an ImageNet-trained network beat hand-made features for finding objects, not just naming them.
- [DeepLab (2014)](https://mralbu.github.io/ai-datasets/p/deeplab.md): Keep a classifier's feature maps dense with atrous convolution, then sharpen the edges with a fully connected CRF.
- [FCN (2014)](https://mralbu.github.io/ai-datasets/p/fcn.md): Turned image classifiers into pixel-by-pixel labelers by replacing fully connected layers with convolutions and skip connections.
- [VGG (2014)](https://mralbu.github.io/ai-datasets/p/vgg.md): Only 3×3 convolutions, stacked 16 to 19 layers deep, and the depth alone made the network better.
- [Faster R-CNN (2015)](https://mralbu.github.io/ai-datasets/p/faster-rcnn.md): Replaced the slow external region proposer with a small network that shares the detector's features.
- [YOLO (2015)](https://mralbu.github.io/ai-datasets/p/yolo.md): Object detection as one pass of one network, fast enough for live video.
- [PSPNet (2016)](https://mralbu.github.io/ai-datasets/p/pspnet.md): Pooled features across multiple spatial scales so every pixel could use whole-scene context to resolve ambiguity.
- [DeepLabv3+ (2018)](https://mralbu.github.io/ai-datasets/p/deeplabv3-plus.md): Paired multi-rate dilated context pooling with a lightweight decoder that sharpens object edges.
- [MoCo (2019)](https://mralbu.github.io/ai-datasets/p/moco.md): Built a large, consistent queue of negative keys with a slowly moving momentum encoder so unsupervised pretraining beat supervised ImageNet on transfer.
- [BYOL (2020)](https://mralbu.github.io/ai-datasets/p/byol.md): Learned strong image representations without any negative pairs by training an online network to predict a slowly moving copy of itself.
- [SimCLR (2020)](https://mralbu.github.io/ai-datasets/p/simclr.md): Showed that plain contrastive learning without queues or memory banks matches supervised ResNet-50 when paired with strong augmentations, a nonlinear projection head and large batches.
- [DINO (2021)](https://mralbu.github.io/ai-datasets/p/dino.md): Applied label-free student–teacher self-distillation to Vision Transformers and uncovered emergent object segmentation in their attention maps.
- [DINOv2 (2023)](https://mralbu.github.io/ai-datasets/p/dinov2.md): Combined image-level self-distillation with patch-level masked modeling on 142 million automatically curated images to produce frozen all-purpose vision features.
