<br />

- **Description**:

This dataset contains the data from the PASCAL Visual Object Classes Challenge,
corresponding to the Classification and Detection competitions.

In the Classification competition, the goal is to predict the set of labels
contained in the image, while in the Detection competition the goal is to
predict the bounding box and label of each individual object. WARNING: As per
the official dataset, the test set of VOC2012 does not contain annotations.

- **Additional Documentation** :
  [Explore on Papers With Code](https://paperswithcode.com/dataset/pascal-voc-2007)

- **Source code** :
  [`tfds.object_detection.Voc`](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/object_detection/voc.py)

- **Versions**:

  - **`5.0.0`** (default): No release notes.
- **Auto-cached**
  ([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):
  No

- **Feature structure**:

    FeaturesDict({
        'image': Image(shape=(None, None, 3), dtype=uint8),
        'image/filename': Text(shape=(), dtype=string),
        'labels': Sequence(ClassLabel(shape=(), dtype=int64, num_classes=20)),
        'labels_no_difficult': Sequence(ClassLabel(shape=(), dtype=int64, num_classes=20)),
        'objects': Sequence({
            'bbox': BBoxFeature(shape=(4,), dtype=float32),
            'is_difficult': bool,
            'is_truncated': bool,
            'label': ClassLabel(shape=(), dtype=int64, num_classes=20),
            'pose': ClassLabel(shape=(), dtype=int64, num_classes=5),
        }),
    })

- **Feature documentation**:

| Feature | Class | Shape | Dtype | Description |
|---|---|---|---|---|
|   | FeaturesDict |   |   |   |
| image | Image | (None, None, 3) | uint8 |   |
| image/filename | Text |   | string |   |
| labels | Sequence(ClassLabel) | (None,) | int64 |   |
| labels_no_difficult | Sequence(ClassLabel) | (None,) | int64 |   |
| objects | Sequence |   |   |   |
| objects/bbox | BBoxFeature | (4,) | float32 |   |
| objects/is_difficult | Tensor |   | bool |   |
| objects/is_truncated | Tensor |   | bool |   |
| objects/label | ClassLabel |   | int64 |   |
| objects/pose | ClassLabel |   | int64 |   |

- **Supervised keys** (See [`as_supervised` doc](https://www.tensorflow.org/datasets/api_docs/python/tfds/load#args)): `None`

## voc/2007 (default config)

- **Config description**: This dataset contains the data from the PASCAL Visual Object Classes Challenge 2007, a.k.a. VOC2007.

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

- **Homepage** :
  <http://host.robots.ox.ac.uk/pascal/VOC/voc2007/>

- **Download size** : `868.85 MiB`

- **Dataset size** : `837.73 MiB`

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 4,952 |
| `'train'` | 2,501 |
| `'validation'` | 2,510 |

- **Figure** ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):

![Visualization](https://storage.googleapis.com/tfds-data/visualization/fig/voc-2007-5.0.0.png)

- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):

<iframe src="https:///frame/datasets/catalog/voc_c4ded2066d5cb4f797e91499a524bcf4e2d299a0692216ec836b3a39e6b5e5b1.frame" class="framebox inherit-locale " allow="clipboard-write https://" allowfullscreen is-upgraded></iframe>

- **Citation**:

    @misc{pascal-voc-2007,
        author = "Everingham, M. and Van~Gool, L. and Williams, C. K. I. and Winn, J. and Zisserman, A.",
        title = "The {PASCAL} {V}isual {O}bject {C}lasses {C}hallenge 2007 {(VOC2007)} {R}esults",
        howpublished = "http://www.pascal-network.org/challenges/VOC/voc2007/workshop/index.html"}

## voc/2012

- **Config description**: This dataset contains the data from the PASCAL Visual Object Classes Challenge 2012, a.k.a. VOC2012.

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.

- **Homepage** :
  <http://host.robots.ox.ac.uk/pascal/VOC/voc2012/>

- **Download size** : `3.59 GiB`

- **Dataset size** : `2.44 GiB`

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 10,991 |
| `'train'` | 5,717 |
| `'validation'` | 5,823 |

- **Figure** ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):

![Visualization](https://storage.googleapis.com/tfds-data/visualization/fig/voc-2012-5.0.0.png)

- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):

<iframe src="https:///frame/datasets/catalog/voc_46a5494818fb8468207cdcf9d8f8c6cba462011f47af50f6c9546774d7b2ac0e.frame" class="framebox inherit-locale " allow="clipboard-write https://" allowfullscreen is-upgraded></iframe>

- **Citation**:

    @misc{pascal-voc-2012,
        author = "Everingham, M. and Van~Gool, L. and Williams, C. K. I. and Winn, J. and Zisserman, A.",
        title = "The {PASCAL} {V}isual {O}bject {C}lasses {C}hallenge 2012 {(VOC2012)} {R}esults",
        howpublished = "http://www.pascal-network.org/challenges/VOC/voc2012/workshop/index.html"}