Dataset Viewer
Auto-converted to Parquet Duplicate
path
stringlengths
32
32
hotel_id
stringlengths
5
5
room
stringlengths
0
44
timestamp
timestamp[s]date
2015-07-06 14:58:20
2026-03-26 18:33:56
is_object
bool
2 classes
view_type
stringclasses
7 values
object_type
stringclasses
18 values
shard
stringclasses
26 values
images/gallery/23/23297/0011.jpg
23297
244
2024-12-27T04:20:21
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23297/0013.jpg
23297
244
2024-12-27T04:20:21
false
bedroom
null
shards/gallery-00000.tar
images/gallery/15/15627/0001.jpg
15627
212
2017-08-15T02:29:09
false
bathroom
null
shards/gallery-00000.tar
images/gallery/15/15627/0003.jpg
15627
212
2017-08-15T02:29:09
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23301/0001.jpg
23301
343
2017-01-20T22:31:41
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23301/0003.jpg
23301
343
2017-01-20T22:31:41
false
hallway
null
shards/gallery-00000.tar
images/gallery/15/15629/0001.jpg
15629
202
2017-03-24T19:12:04
false
bedroom
null
shards/gallery-00000.tar
images/gallery/15/15629/0003.jpg
15629
202
2017-03-24T19:12:04
false
bedroom
null
shards/gallery-00000.tar
images/gallery/15/15632/0000.jpg
15632
223
2018-03-12T05:18:34
false
bedroom
null
shards/gallery-00000.tar
images/gallery/15/15632/0002.jpg
15632
223
2018-03-12T05:18:34
false
bathroom
null
shards/gallery-00000.tar
images/gallery/15/15633/0000.jpg
15633
310
2019-06-26T22:49:41
false
bedroom
null
shards/gallery-00000.tar
images/gallery/15/15633/0002.jpg
15633
310
2019-06-26T22:49:41
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23303/0000.jpg
23303
323
2018-04-04T22:26:32
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23303/0002.jpg
23303
323
2018-04-04T22:26:32
false
living area
null
shards/gallery-00000.tar
images/gallery/15/15638/0000.jpg
15638
101
2019-08-09T00:26:53
false
bedroom
null
shards/gallery-00000.tar
images/gallery/15/15638/0002.jpg
15638
101
2019-08-09T00:26:53
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23305/0030.jpg
23305
203
2025-09-19T02:24:49
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23827/0000.jpg
23827
209
2020-06-18T00:08:57
false
bathroom
null
shards/gallery-00000.tar
images/gallery/23/23827/0002.jpg
23827
209
2020-06-18T00:08:57
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23828/0000.jpg
23828
227
2019-05-26T03:20:39
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23828/0002.jpg
23828
227
2019-05-26T03:20:39
false
bathroom
null
shards/gallery-00000.tar
images/gallery/00/00003/0000.jpg
00003
2124
2018-10-31T17:38:53
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00003/0002.jpg
00003
2124
2018-10-31T17:38:53
false
bathroom
null
shards/gallery-00000.tar
images/gallery/23/23829/0000.jpg
23829
236
2019-01-11T07:56:36
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23829/0002.jpg
23829
236
2019-01-11T07:56:36
false
bedroom
null
shards/gallery-00000.tar
images/gallery/15/15641/0000.jpg
15641
325
2019-08-30T23:36:59
false
bedroom
null
shards/gallery-00000.tar
images/gallery/15/15641/0002.jpg
15641
325
2019-08-30T23:36:59
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23830/0000.jpg
23830
1084
2018-02-20T10:19:34
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23830/0002.jpg
23830
1084
2018-02-20T10:19:34
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00004/0000.jpg
00004
216
2018-04-16T14:18:24
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00004/0002.jpg
00004
216
2018-04-16T14:18:24
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00007/0000.jpg
00007
1118
2018-08-13T14:42:27
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00007/0002.jpg
00007
1118
2018-08-13T14:42:27
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23833/0000.jpg
23833
227
2017-10-25T16:18:02
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23833/0002.jpg
23833
227
2017-10-25T16:18:02
false
bathroom
null
shards/gallery-00000.tar
images/gallery/00/00008/0000.jpg
00008
316
2016-07-29T14:27:16
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00008/0002.jpg
00008
316
2016-07-29T14:27:16
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23835/0004.jpg
23835
509
2023-07-21T18:31:10
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23836/0001.jpg
23836
214
2018-03-17T01:08:11
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23836/0003.jpg
23836
214
2018-03-17T01:08:11
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23838/0001.jpg
23838
455
2019-10-02T19:56:43
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23838/0003.jpg
23838
455
2019-10-02T19:56:43
false
bathroom
null
shards/gallery-00000.tar
images/gallery/00/00009/0001.jpg
00009
228
2020-06-29T21:43:31
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00009/0003.jpg
00009
228
2020-06-29T21:43:31
false
bathroom
null
shards/gallery-00000.tar
images/gallery/00/00011/0000.jpg
00011
282
2019-10-19T02:47:50
false
living area
null
shards/gallery-00000.tar
images/gallery/00/00011/0002.jpg
00011
282
2019-10-19T02:47:49
false
bathroom
null
shards/gallery-00000.tar
images/gallery/00/00011/0004.jpg
00011
282
2019-10-19T02:01:07
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00011/0006.jpg
00011
282
2019-10-19T02:01:07
false
bathroom
null
shards/gallery-00000.tar
images/gallery/00/00012/0000.jpg
00012
130
2021-02-01T23:53:26
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00012/0002.jpg
00012
130
2021-02-01T23:53:26
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00012/0004.jpg
00012
130
2021-02-01T23:53:26
false
bathroom
null
shards/gallery-00000.tar
images/gallery/00/00012/0006.jpg
00012
130
2021-02-01T23:53:26
false
bathroom
null
shards/gallery-00000.tar
images/gallery/23/23840/0001.jpg
23840
111
2017-06-02T23:46:41
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23840/0003.jpg
23840
111
2017-06-02T23:46:41
false
bathroom
null
shards/gallery-00000.tar
images/gallery/40/40723/0001.jpg
40723
364
2017-08-16T23:33:47
false
bedroom
null
shards/gallery-00000.tar
images/gallery/40/40723/0003.jpg
40723
364
2017-08-16T23:33:46
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23842/0001.jpg
23842
822
2020-01-07T12:34:13
false
bathroom
null
shards/gallery-00000.tar
images/gallery/23/23842/0003.jpg
23842
822
2020-01-07T12:34:13
false
living area
null
shards/gallery-00000.tar
images/gallery/00/00014/0001.jpg
00014
1762
2019-03-24T18:59:20
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00014/0003.jpg
00014
1762
2019-03-24T18:59:20
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00016/0001.jpg
00016
327
2020-08-12T16:26:13
false
living area
null
shards/gallery-00000.tar
images/gallery/00/00016/0003.jpg
00016
327
2020-08-12T16:26:13
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23845/0001.jpg
23845
10306
2018-05-28T06:26:30
false
bathroom
null
shards/gallery-00000.tar
images/gallery/23/23846/0000.jpg
23846
303
2018-12-05T02:43:02
false
bathroom
null
shards/gallery-00000.tar
images/gallery/23/23846/0002.jpg
23846
303
2018-12-05T02:43:01
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23851/0021.jpg
23851
308
2022-03-12T00:34:37
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23852/0001.jpg
23852
123
2018-07-11T01:16:46
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23852/0003.jpg
23852
123
2018-07-11T01:16:46
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23853/0001.jpg
23853
1203
2018-09-16T19:02:43
false
bathroom
null
shards/gallery-00000.tar
images/gallery/23/23853/0003.jpg
23853
1203
2018-09-16T19:02:43
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00018/0001.jpg
00018
339
2019-11-15T01:31:48
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00018/0003.jpg
00018
339
2019-11-15T01:31:48
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23854/0001.jpg
23854
111
2016-11-17T02:21:17
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23854/0003.jpg
23854
111
2016-11-17T02:21:17
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00019/0001.jpg
00019
302
2017-06-03T05:19:31
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00019/0003.jpg
00019
302
2017-06-03T05:19:31
false
bedroom
null
shards/gallery-00000.tar
images/gallery/15/15647/0000.jpg
15647
216
2017-05-06T03:38:00
false
bedroom
null
shards/gallery-00000.tar
images/gallery/15/15647/0002.jpg
15647
216
2017-05-06T03:38:00
false
bathroom
null
shards/gallery-00000.tar
images/gallery/23/23858/0000.jpg
23858
130
2017-03-29T04:51:09
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23858/0002.jpg
23858
130
2017-03-29T04:51:09
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23859/0000.jpg
23859
327
2018-11-14T01:51:09
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23859/0002.jpg
23859
327
2018-11-14T01:51:09
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00026/0000.jpg
00026
416
2019-08-11T22:33:41
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00026/0002.jpg
00026
416
2019-08-11T22:33:41
false
kitchen
null
shards/gallery-00000.tar
images/gallery/23/23860/0000.jpg
23860
307
2019-06-16T11:53:11
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23860/0002.jpg
23860
307
2019-06-16T11:53:11
false
bathroom
null
shards/gallery-00000.tar
images/gallery/23/23861/0000.jpg
23861
104
2017-04-30T03:41:42
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23861/0002.jpg
23861
104
2017-04-30T03:41:41
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00031/0000.jpg
00031
317
2017-09-11T15:24:28
false
bedroom
null
shards/gallery-00000.tar
images/gallery/00/00031/0002.jpg
00031
317
2017-09-11T15:24:28
false
bathroom
null
shards/gallery-00000.tar
images/gallery/23/23862/0000.jpg
23862
101
2016-07-17T00:57:45
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23862/0002.jpg
23862
101
2016-07-17T00:57:45
false
bedroom
null
shards/gallery-00000.tar
images/gallery/15/15648/0000.jpg
15648
212
2017-07-06T02:48:27
false
bedroom
null
shards/gallery-00000.tar
images/gallery/15/15648/0002.jpg
15648
212
2017-07-06T02:48:26
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23864/0000.jpg
23864
708
2018-01-28T17:25:30
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23864/0002.jpg
23864
708
2018-01-28T17:25:30
false
bathroom
null
shards/gallery-00000.tar
images/gallery/23/23866/0000.jpg
23866
258
2017-12-02T04:31:18
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23866/0002.jpg
23866
258
2017-12-02T04:31:18
false
living area
null
shards/gallery-00000.tar
images/gallery/00/00037/0010.jpg
00037
1019
2022-10-12T21:23:07
false
bedroom
null
shards/gallery-00000.tar
images/gallery/23/23868/0033.jpg
23868
1102
2023-05-22T01:01:38
false
bedroom
null
shards/gallery-00000.tar
End of preview. Expand in Data Studio

OpenHotels

OpenHotels is a large-scale hotel image retrieval benchmark built from hotel-room imagery and associated hotel metadata. The dataset is designed for hotel-scale retrieval: given a query image, a system must retrieve the matching hotel from a large gallery containing both true matching classes and many distractor hotel classes.

Dataset Structure

The release contains tar-sharded image files under shards/ and four metadata files:

shards/
  gallery-00000.tar
  ...
  test_non_object-00000.tar
  ...
  test_object-00000.tar
  ...
metadata_gallery.json
metadata_test_non_object.json
metadata_test_object.json
metadata_hotels.json
croissant.json

The benchmark has three image subsets:

  • gallery: searchable reference images for all hotel classes, including distractor-only hotels.
  • test_non_object: held-out room-view query images.
  • test_object: held-out object-centric query images.

Statistics

Subset Hotels Images
Gallery 41,027 253,597
Test Non-Object 15,982 62,706
Test Object 4,707 54,842

The gallery contains 140,247 non-object room-view images and 113,350 object-centric images. Across both test subsets there are 15,982 unique hotel classes; the gallery includes 25,045 distractor hotel classes that do not appear in either test subset.

Metadata

The dataset includes the following metadata fields.

Image Metadata

All image metadata rows include:

  • path: image member name inside the tar file listed in shard.
  • shard: relative path to the tar shard containing the image.
  • hotel_id: stable anonymized hotel class identifier.
  • room: room identifier associated with the image upload when available. This is not the semantic room/view label.
  • timestamp: upload timestamp associated with the image.

Gallery rows additionally include:

  • is_object: whether the gallery image is object-centric.
  • view_type: room-level view category for non-object gallery images.
  • object_type: localized object category for object-centric gallery images.

Test Non-Object rows additionally include:

  • view_type: room-level view category for the query image.

Test Object rows additionally include:

  • object_type: localized object category for the query image.

view_type describes the room-level view depicted in a non-object image. Possible values are: bedroom, bathroom, living area, hallway, kitchen, closet, and balcony.

object_type describes the localized hotel-room object depicted in an object-centric image. Possible values are: bed, lamp, artwork, window/curtains, toilet, nightstand, sink, seating, office desk, shower/bathtub, tv, wardrobe, door, chest, mirror, kitchen appliances, flooring, and sign.

Example gallery row:

{
  "path": "images/gallery/23/23297/0011.jpg",
  "shard": "shards/gallery-00000.tar",
  "hotel_id": "23297",
  "room": "244",
  "timestamp": "2024-12-27T04:20:21",
  "is_object": false,
  "view_type": "bedroom"
}

Example Test Non-Object row:

{
  "path": "images/test_non_object/00/000000.jpg",
  "shard": "shards/test_non_object-00000.tar",
  "hotel_id": "03875",
  "room": "405",
  "timestamp": "2016-06-25T06:13:23",
  "view_type": "bedroom"
}

Example Test Object row:

{
  "path": "images/test_object/00/000000.jpg",
  "shard": "shards/test_object-00000.tar",
  "hotel_id": "03875",
  "room": "425",
  "timestamp": "2021-07-28T09:43:57",
  "object_type": "nightstand"
}

Hotel Metadata

Each row in metadata_hotels.json describes one hotel class:

  • hotel_id: stable anonymized hotel class identifier.
  • name: hotel name.
  • lat: hotel latitude in decimal degrees.
  • lng: hotel longitude in decimal degrees.
  • date_added: timestamp when the hotel record was added.
  • in_gallery: whether the hotel appears in the gallery subset.
  • in_test_non_object: whether the hotel appears in the Test Non-Object subset.
  • in_test_object: whether the hotel appears in the Test Object subset.
{
  "hotel_id": "00000",
  "name": "Extended Stay America - Fairbanks - Old Airport Way",
  "lat": 64.83538,
  "lng": -147.8233,
  "date_added": "2015-06-25T21:34:48",
  "in_gallery": true,
  "in_test_non_object": false,
  "in_test_object": false
}

Loading Images from Shards

The same helper can load gallery images and both query subsets. The metadata row tells the loader which tar shard contains the image and which member path to read from that shard.

import json
import tarfile
from io import BytesIO
from PIL import Image

def load_image(row):
    """Load one OpenHotels image from its tar shard."""
    with tarfile.open(row["shard"], "r") as tar:
        image_file = tar.extractfile(row["path"])
        return Image.open(BytesIO(image_file.read())).convert("RGB")

def load_metadata(path):
    with open(path) as f:
        return json.load(f)

Load a gallery image. Gallery rows contain is_object; non-object gallery rows include view_type, and object-centric gallery rows include object_type.

gallery = load_metadata("metadata_gallery.json")
gallery_row = gallery[0]
gallery_image = load_image(gallery_row)

print(gallery_row["hotel_id"], gallery_row["path"])
if gallery_row["is_object"]:
    print("object type:", gallery_row["object_type"])
else:
    print("view type:", gallery_row["view_type"])

Load a Test Non-Object query image and inspect its room-level view label.

test_non_object = load_metadata("metadata_test_non_object.json")
non_object_row = test_non_object[0]
non_object_image = load_image(non_object_row)

print(non_object_row["hotel_id"], non_object_row["path"])
print("view type:", non_object_row["view_type"])

Load a Test Object query image and inspect its object label.

test_object = load_metadata("metadata_test_object.json")
object_row = test_object[0]
object_image = load_image(object_row)

print(object_row["hotel_id"], object_row["path"])
print("object type:", object_row["object_type"])

Evaluation Protocol

Use the gallery as the retrieval database. Evaluate the two query subsets separately:

  • Test Non-Object evaluates retrieval from room-level query images.
  • Test Object evaluates retrieval from object-centric query images.

For each query, rank gallery images or aggregate ranked images to hotel-level predictions, then score retrieval against the query hotel_id. The standard metrics are Recall@K for K in {1, 5, 10, 100}.

Downloads last month
202