# stanford_online_products

<br />

- **Description**:

Stanford Online Products Dataset

- **Additional Documentation** :
  [Explore on Papers With Code](https://paperswithcode.com/dataset/stanford-online-products)

- **Homepage** :
  <http://cvgl.stanford.edu/projects/lifted_struct/>

- **Source code** :
  [`tfds.datasets.stanford_online_products.Builder`](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/stanford_online_products/stanford_online_products_dataset_builder.py)

- **Versions**:

  - **`1.0.0`** (default): No release notes.
- **Download size** : `2.87 GiB`

- **Dataset size** : `2.89 GiB`

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

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 60,502 |
| `'train'` | 59,551 |

- **Feature structure**:

    FeaturesDict({
        'class_id': ClassLabel(shape=(), dtype=int64, num_classes=22634),
        'image': Image(shape=(None, None, 3), dtype=uint8),
        'super_class_id': ClassLabel(shape=(), dtype=int64, num_classes=12),
        'super_class_id/num': ClassLabel(shape=(), dtype=int64, num_classes=12),
    })

- **Feature documentation**:

| Feature | Class | Shape | Dtype | Description |
|---|---|---|---|---|
|   | FeaturesDict |   |   |   |
| class_id | ClassLabel |   | int64 |   |
| image | Image | (None, None, 3) | uint8 |   |
| super_class_id | ClassLabel |   | int64 |   |
| super_class_id/num | ClassLabel |   | int64 |   |

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

- **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/stanford_online_products-1.0.0.png)

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

<button id="displaydataframe">Display examples...</button>

- **Citation**:

    @inproceedings{song2016deep,
     author    = {Song, Hyun Oh and Xiang, Yu and Jegelka, Stefanie and Savarese, Silvio},
     title     = {Deep Metric Learning via Lifted Structured Feature Embedding},
     booktitle = {IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
     year      = {2016}
    }