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

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

# VOC-2007

The dataset for the PASCAL Visual Object Classes Challenge 2007
(VOC2007) for the detection competition.

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

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

**Details**

- Dataset name: `voc-2007`
- Dataset source: [http://host.robots.ox.ac.uk/pascal/VOC/voc2007](http://host.robots.ox.ac.uk/pascal/VOC/voc2007)
- Dataset size: 868.85 MB
- Tags: `image, detection`
- Supported splits: `train, validation, test`
- ZooDataset classes:
  - [`VOC2007Dataset`](../../api/fiftyone.zoo.datasets.tf.md#fiftyone.zoo.datasets.tf.VOC2007Dataset) (TF backend)
  - [`VOC2007Dataset`](../../api/fiftyone.zoo.datasets.torch.md#fiftyone.zoo.datasets.torch.VOC2007Dataset) (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-2007", split="validation")

session = fo.launch_app(dataset)
```

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

fiftyone app launch voc-2007-validation
```

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