Skip to content

Commit 77f2b14

Browse files
author
The TensorFlow Datasets Authors
committed
Automated documentation update.
PiperOrigin-RevId: 660949937
1 parent 1655914 commit 77f2b14

File tree

1 file changed

+29
-52
lines changed

1 file changed

+29
-52
lines changed

docs/catalog/oxford_iiit_pet.md

Lines changed: 29 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<meta itemprop="name" content="TensorFlow Datasets" />
44
</div>
55
<meta itemprop="name" content="oxford_iiit_pet" />
6-
<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;" />
6+
<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;" />
77
<meta itemprop="url" content="https://www.tensorflow.org/datasets/catalog/oxford_iiit_pet" />
88
<meta itemprop="sameAs" content="http://www.robots.ox.ac.uk/~vgg/data/pets/" />
99
<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;}" />
@@ -12,11 +12,19 @@
1212
# `oxford_iiit_pet`
1313

1414

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

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

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

3341
* **Versions**:
3442

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

37-
* **Download size**: `773.52 MiB`
47+
* **Download size**: `Unknown size`
3848

39-
* **Dataset size**: `774.69 MiB`
49+
* **Dataset size**: `Unknown size`
4050

4151
* **Auto-cached**
4252
([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):
43-
No
53+
Unknown
4454

4555
* **Splits**:
4656

47-
Split | Examples
48-
:-------- | -------:
49-
`'test'` | 3,669
50-
`'train'` | 3,680
57+
Split | Examples
58+
:---- | -------:
5159

5260
* **Feature structure**:
5361

5462
```python
5563
FeaturesDict({
5664
'file_name': Text(shape=(), dtype=string),
65+
'head_bbox': BBoxFeature(shape=(4,), dtype=float32),
5766
'image': Image(shape=(None, None, 3), dtype=uint8),
5867
'label': ClassLabel(shape=(), dtype=int64, num_classes=37),
5968
'segmentation_mask': Image(shape=(None, None, 1), dtype=uint8),
@@ -63,14 +72,15 @@ FeaturesDict({
6372

6473
* **Feature documentation**:
6574

66-
Feature | Class | Shape | Dtype | Description
67-
:---------------- | :----------- | :-------------- | :----- | :----------
68-
| FeaturesDict | | |
69-
file_name | Text | | string |
70-
image | Image | (None, None, 3) | uint8 |
71-
label | ClassLabel | | int64 |
72-
segmentation_mask | Image | (None, None, 1) | uint8 |
73-
species | ClassLabel | | int64 |
75+
Feature | Class | Shape | Dtype | Description
76+
:---------------- | :----------- | :-------------- | :------ | :----------
77+
| FeaturesDict | | |
78+
file_name | Text | | string |
79+
head_bbox | BBoxFeature | (4,) | float32 |
80+
image | Image | (None, None, 3) | uint8 |
81+
label | ClassLabel | | int64 |
82+
segmentation_mask | Image | (None, None, 1) | uint8 |
83+
species | ClassLabel | | int64 |
7484

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

8393
* **Examples**
8494
([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):
85-
86-
<!-- mdformat off(HTML should not be auto-formatted) -->
87-
88-
{% framebox %}
89-
90-
<button id="displaydataframe">Display examples...</button>
91-
<div id="dataframecontent" style="overflow-x:auto"></div>
92-
<script>
93-
const url = "https://storage.googleapis.com/tfds-data/visualization/dataframe/oxford_iiit_pet-3.2.0.html";
94-
const dataButton = document.getElementById('displaydataframe');
95-
dataButton.addEventListener('click', async () => {
96-
// Disable the button after clicking (dataframe loaded only once).
97-
dataButton.disabled = true;
98-
99-
const contentPane = document.getElementById('dataframecontent');
100-
try {
101-
const response = await fetch(url);
102-
// Error response codes don't throw an error, so force an error to show
103-
// the error message.
104-
if (!response.ok) throw Error(response.statusText);
105-
106-
const data = await response.text();
107-
contentPane.innerHTML = data;
108-
} catch (e) {
109-
contentPane.innerHTML =
110-
'Error loading examples. If the error persist, please open '
111-
+ 'a new issue.';
112-
}
113-
});
114-
</script>
115-
116-
{% endframebox %}
117-
118-
<!-- mdformat on -->
95+
Missing.
11996

12097
* **Citation**:
12198

0 commit comments

Comments
 (0)