<!-- # hard line break macro for HTML -->

<a id="dataset-zoo-voc-2012"></a>

# VOC-2012

The dataset for the PASCAL Visual Object Classes Challenge 2012
(VOC2012) for the detection competition.

A total of 11540 images are included in this dataset, where each image
contains a set of objects, out of 20 different classes, making a total of
27450 annotated objects.

Note that, as per the official dataset, the test set of VOC2012 does not
contain annotations.

**Details**

- Dataset name: `voc-2012`
- Dataset source: [http://host.robots.ox.ac.uk/pascal/VOC/voc2012](http://host.robots.ox.ac.uk/pascal/VOC/voc2012)
- Dataset size: 3.59 GB
- Tags: `image, detection`
- Supported splits: `train, validation, test`
- ZooDataset classes:
  - [`VOC2012Dataset`](../../api/fiftyone.zoo.datasets.tf.md#fiftyone.zoo.datasets.tf.VOC2012Dataset) (TF backend)
  - [`VOC2012Dataset`](../../api/fiftyone.zoo.datasets.torch.md#fiftyone.zoo.datasets.torch.VOC2012Dataset) (Torch backend)

#### NOTE
The `test` split is only available via the
[TensorFlow backend](../api.md#dataset-zoo-ml-backend).

#### NOTE
You must have the
[Torch or TensorFlow backend(s)](../api.md#dataset-zoo-ml-backend) installed to
load this dataset.

**Example usage**

Python

CLI

```python
import fiftyone as fo
import fiftyone.zoo as foz

dataset = foz.load_zoo_dataset("voc-2012", split="validation")

session = fo.launch_app(dataset)
```

```shell
fiftyone zoo datasets load voc-2012 --split validation

fiftyone app launch voc-2012-validation
```

![voc-2012-validation](images/dataset_zoo/voc-2012-validation.png)
