Skip to content

Commit

Permalink
Automated documentation update.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 660949937
  • Loading branch information
The TensorFlow Datasets Authors committed Aug 8, 2024
1 parent 1655914 commit 77f2b14
Showing 1 changed file with 29 additions and 52 deletions.
81 changes: 29 additions & 52 deletions docs/catalog/oxford_iiit_pet.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<meta itemprop="name" content="TensorFlow Datasets" />
</div>
<meta itemprop="name" content="oxford_iiit_pet" />
<meta itemprop="description" content="The Oxford-IIIT pet dataset is a 37 category pet image dataset with roughly 200&#10;images for each class. The images have large variations in scale, pose and&#10;lighting. All images have an associated ground truth annotation of breed.&#10;&#10;To use this dataset:&#10;&#10;```python&#10;import tensorflow_datasets as tfds&#10;&#10;ds = tfds.load(&#x27;oxford_iiit_pet&#x27;, split=&#x27;train&#x27;)&#10;for ex in ds.take(4):&#10; print(ex)&#10;```&#10;&#10;See [the guide](https://www.tensorflow.org/datasets/overview) for more&#10;informations on [tensorflow_datasets](https://www.tensorflow.org/datasets).&#10;&#10;" />
<meta itemprop="description" content="The Oxford-IIIT pet dataset is a 37 category pet image dataset with roughly 200&#10;images for each class. The images have large variations in scale, pose and&#10;lighting. All images have an associated ground truth annotation of breed and&#10;species. Additionally, head bounding boxes are provided for the training split,&#10;allowing using this dataset for simple object detection tasks. In the test&#10;split, the bounding boxes are empty.&#10;&#10;To use this dataset:&#10;&#10;```python&#10;import tensorflow_datasets as tfds&#10;&#10;ds = tfds.load(&#x27;oxford_iiit_pet&#x27;, split=&#x27;train&#x27;)&#10;for ex in ds.take(4):&#10; print(ex)&#10;```&#10;&#10;See [the guide](https://www.tensorflow.org/datasets/overview) for more&#10;informations on [tensorflow_datasets](https://www.tensorflow.org/datasets).&#10;&#10;" />
<meta itemprop="url" content="https://www.tensorflow.org/datasets/catalog/oxford_iiit_pet" />
<meta itemprop="sameAs" content="http://www.robots.ox.ac.uk/~vgg/data/pets/" />
<meta itemprop="citation" content="@InProceedings{parkhi12a,&#10; author = &quot;Parkhi, O. M. and Vedaldi, A. and Zisserman, A. and Jawahar, C.~V.&quot;,&#10; title = &quot;Cats and Dogs&quot;,&#10; booktitle = &quot;IEEE Conference on Computer Vision and Pattern Recognition&quot;,&#10; year = &quot;2012&quot;,&#10;}" />
Expand All @@ -12,11 +12,19 @@
# `oxford_iiit_pet`


Note: This dataset has been updated since the last stable release. The new
versions and config marked with
<span class="material-icons" title="Available only in the tfds-nightly package">nights_stay</span>
are only available in the `tfds-nightly` package.

* **Description**:

The Oxford-IIIT pet dataset is a 37 category pet image dataset with roughly 200
images for each class. The images have large variations in scale, pose and
lighting. All images have an associated ground truth annotation of breed.
lighting. All images have an associated ground truth annotation of breed and
species. Additionally, head bounding boxes are provided for the training split,
allowing using this dataset for simple object detection tasks. In the test
split, the bounding boxes are empty.

* **Additional Documentation**:
<a class="button button-with-icon" href="https://paperswithcode.com/dataset/oxford-iiit-pets">
Expand All @@ -32,28 +40,29 @@ lighting. All images have an associated ground truth annotation of breed.

* **Versions**:

* **`3.2.0`** (default): No release notes.
* **`4.0.0`** (default)
<span class="material-icons" title="Available only in the tfds-nightly package">nights_stay</span>:
Add head bounding boxes. Fix corrupt images. Update dataset URL.

* **Download size**: `773.52 MiB`
* **Download size**: `Unknown size`

* **Dataset size**: `774.69 MiB`
* **Dataset size**: `Unknown size`

* **Auto-cached**
([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):
No
Unknown

* **Splits**:

Split | Examples
:-------- | -------:
`'test'` | 3,669
`'train'` | 3,680
Split | Examples
:---- | -------:

* **Feature structure**:

```python
FeaturesDict({
'file_name': Text(shape=(), dtype=string),
'head_bbox': BBoxFeature(shape=(4,), dtype=float32),
'image': Image(shape=(None, None, 3), dtype=uint8),
'label': ClassLabel(shape=(), dtype=int64, num_classes=37),
'segmentation_mask': Image(shape=(None, None, 1), dtype=uint8),
Expand All @@ -63,14 +72,15 @@ FeaturesDict({

* **Feature documentation**:

Feature | Class | Shape | Dtype | Description
:---------------- | :----------- | :-------------- | :----- | :----------
| FeaturesDict | | |
file_name | Text | | string |
image | Image | (None, None, 3) | uint8 |
label | ClassLabel | | int64 |
segmentation_mask | Image | (None, None, 1) | uint8 |
species | ClassLabel | | int64 |
Feature | Class | Shape | Dtype | Description
:---------------- | :----------- | :-------------- | :------ | :----------
| FeaturesDict | | |
file_name | Text | | string |
head_bbox | BBoxFeature | (4,) | float32 |
image | Image | (None, None, 3) | uint8 |
label | ClassLabel | | int64 |
segmentation_mask | Image | (None, None, 1) | uint8 |
species | ClassLabel | | int64 |

* **Supervised keys** (See
[`as_supervised` doc](https://www.tensorflow.org/datasets/api_docs/python/tfds/load#args)):
Expand All @@ -82,40 +92,7 @@ species | ClassLabel | | int64 |

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

<!-- mdformat off(HTML should not be auto-formatted) -->

{% framebox %}

<button id="displaydataframe">Display examples...</button>
<div id="dataframecontent" style="overflow-x:auto"></div>
<script>
const url = "https://storage.googleapis.com/tfds-data/visualization/dataframe/oxford_iiit_pet-3.2.0.html";
const dataButton = document.getElementById('displaydataframe');
dataButton.addEventListener('click', async () => {
// Disable the button after clicking (dataframe loaded only once).
dataButton.disabled = true;

const contentPane = document.getElementById('dataframecontent');
try {
const response = await fetch(url);
// Error response codes don't throw an error, so force an error to show
// the error message.
if (!response.ok) throw Error(response.statusText);

const data = await response.text();
contentPane.innerHTML = data;
} catch (e) {
contentPane.innerHTML =
'Error loading examples. If the error persist, please open '
+ 'a new issue.';
}
});
</script>

{% endframebox %}

<!-- mdformat on -->
Missing.

* **Citation**:

Expand Down

0 comments on commit 77f2b14

Please sign in to comment.