astylianou commited on
Commit
4838464
·
verified ·
1 Parent(s): 73fe010

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -58,3 +58,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ metadata_test_non_object.json filter=lfs diff=lfs merge=lfs -text
62
+ metadata_test_object.json filter=lfs diff=lfs merge=lfs -text
63
+ metadata_gallery.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,220 @@
1
- ---
2
- license: cc0-1.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ task_categories:
4
+ - image-classification
5
+ - image-feature-extraction
6
+ - visual-document-retrieval
7
+ language:
8
+ - en
9
+ tags:
10
+ - hotel-identification
11
+ - image-retrieval
12
+ - visual-place-recognition
13
+ - object-centric-retrieval
14
+ pretty_name: OpenHotels
15
+ size_categories:
16
+ - 100K<n<1M
17
+ ---
18
+
19
+ # OpenHotels
20
+
21
+ 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.
22
+
23
+ ## Dataset Structure
24
+
25
+ The release contains tar-sharded image files under `shards/` and four metadata files:
26
+
27
+ ```text
28
+ shards/
29
+ gallery-00000.tar
30
+ ...
31
+ test_non_object-00000.tar
32
+ ...
33
+ test_object-00000.tar
34
+ ...
35
+ metadata_gallery.json
36
+ metadata_test_non_object.json
37
+ metadata_test_object.json
38
+ metadata_hotels.json
39
+ croissant.json
40
+ ```
41
+
42
+ The benchmark has three image subsets:
43
+
44
+ - `gallery`: searchable reference images for all hotel classes, including distractor-only hotels.
45
+ - `test_non_object`: held-out room-view query images.
46
+ - `test_object`: held-out object-centric query images.
47
+
48
+ ## Statistics
49
+
50
+ | Subset | Hotels | Images |
51
+ | --- | ---: | ---: |
52
+ | Gallery | 41,027 | 253,597 |
53
+ | Test Non-Object | 15,982 | 62,706 |
54
+ | Test Object | 4,707 | 54,842 |
55
+
56
+ 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.
57
+
58
+ ## Metadata
59
+
60
+ The dataset includes the following metadata fields.
61
+
62
+ ### Image Metadata
63
+
64
+ All image metadata rows include:
65
+
66
+ - `path`: image member name inside the tar file listed in `shard`.
67
+ - `shard`: relative path to the tar shard containing the image.
68
+ - `hotel_id`: stable anonymized hotel class identifier.
69
+ - `room`: room identifier associated with the image upload when available. This is not the semantic room/view label.
70
+ - `timestamp`: upload timestamp associated with the image.
71
+
72
+ Gallery rows additionally include:
73
+
74
+ - `is_object`: whether the gallery image is object-centric.
75
+ - `view_type`: room-level view category for non-object gallery images.
76
+ - `object_type`: localized object category for object-centric gallery images.
77
+
78
+ Test Non-Object rows additionally include:
79
+
80
+ - `view_type`: room-level view category for the query image.
81
+
82
+ Test Object rows additionally include:
83
+
84
+ - `object_type`: localized object category for the query image.
85
+
86
+ `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`.
87
+
88
+ `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`.
89
+
90
+ Example gallery row:
91
+
92
+ ```json
93
+ {
94
+ "path": "images/gallery/23/23297/0011.jpg",
95
+ "shard": "shards/gallery-00000.tar",
96
+ "hotel_id": "23297",
97
+ "room": "244",
98
+ "timestamp": "2024-12-27T04:20:21",
99
+ "is_object": false,
100
+ "view_type": "bedroom"
101
+ }
102
+ ```
103
+
104
+ Example Test Non-Object row:
105
+
106
+ ```json
107
+ {
108
+ "path": "images/test_non_object/00/000000.jpg",
109
+ "shard": "shards/test_non_object-00000.tar",
110
+ "hotel_id": "03875",
111
+ "room": "405",
112
+ "timestamp": "2016-06-25T06:13:23",
113
+ "view_type": "bedroom"
114
+ }
115
+ ```
116
+
117
+ Example Test Object row:
118
+
119
+ ```json
120
+ {
121
+ "path": "images/test_object/00/000000.jpg",
122
+ "shard": "shards/test_object-00000.tar",
123
+ "hotel_id": "03875",
124
+ "room": "425",
125
+ "timestamp": "2021-07-28T09:43:57",
126
+ "object_type": "nightstand"
127
+ }
128
+ ```
129
+
130
+ ### Hotel Metadata
131
+
132
+ Each row in `metadata_hotels.json` describes one hotel class:
133
+
134
+ - `hotel_id`: stable anonymized hotel class identifier.
135
+ - `name`: hotel name.
136
+ - `lat`: hotel latitude in decimal degrees.
137
+ - `lng`: hotel longitude in decimal degrees.
138
+ - `date_added`: timestamp when the hotel record was added.
139
+ - `in_gallery`: whether the hotel appears in the gallery subset.
140
+ - `in_test_non_object`: whether the hotel appears in the Test Non-Object subset.
141
+ - `in_test_object`: whether the hotel appears in the Test Object subset.
142
+
143
+ ```json
144
+ {
145
+ "hotel_id": "00000",
146
+ "name": "Extended Stay America - Fairbanks - Old Airport Way",
147
+ "lat": 64.83538,
148
+ "lng": -147.8233,
149
+ "date_added": "2015-06-25T21:34:48",
150
+ "in_gallery": true,
151
+ "in_test_non_object": false,
152
+ "in_test_object": false
153
+ }
154
+ ```
155
+
156
+ ## Loading Images from Shards
157
+
158
+ 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.
159
+
160
+ ```python
161
+ import json
162
+ import tarfile
163
+ from io import BytesIO
164
+ from PIL import Image
165
+
166
+ def load_image(row):
167
+ """Load one OpenHotels image from its tar shard."""
168
+ with tarfile.open(row["shard"], "r") as tar:
169
+ image_file = tar.extractfile(row["path"])
170
+ return Image.open(BytesIO(image_file.read())).convert("RGB")
171
+
172
+ def load_metadata(path):
173
+ with open(path) as f:
174
+ return json.load(f)
175
+ ```
176
+
177
+ Load a gallery image. Gallery rows contain `is_object`; non-object gallery rows include `view_type`, and object-centric gallery rows include `object_type`.
178
+
179
+ ```python
180
+ gallery = load_metadata("metadata_gallery.json")
181
+ gallery_row = gallery[0]
182
+ gallery_image = load_image(gallery_row)
183
+
184
+ print(gallery_row["hotel_id"], gallery_row["path"])
185
+ if gallery_row["is_object"]:
186
+ print("object type:", gallery_row["object_type"])
187
+ else:
188
+ print("view type:", gallery_row["view_type"])
189
+ ```
190
+
191
+ Load a Test Non-Object query image and inspect its room-level view label.
192
+
193
+ ```python
194
+ test_non_object = load_metadata("metadata_test_non_object.json")
195
+ non_object_row = test_non_object[0]
196
+ non_object_image = load_image(non_object_row)
197
+
198
+ print(non_object_row["hotel_id"], non_object_row["path"])
199
+ print("view type:", non_object_row["view_type"])
200
+ ```
201
+
202
+ Load a Test Object query image and inspect its object label.
203
+
204
+ ```python
205
+ test_object = load_metadata("metadata_test_object.json")
206
+ object_row = test_object[0]
207
+ object_image = load_image(object_row)
208
+
209
+ print(object_row["hotel_id"], object_row["path"])
210
+ print("object type:", object_row["object_type"])
211
+ ```
212
+
213
+ ## Evaluation Protocol
214
+
215
+ Use the gallery as the retrieval database. Evaluate the two query subsets separately:
216
+
217
+ - Test Non-Object evaluates retrieval from room-level query images.
218
+ - Test Object evaluates retrieval from object-centric query images.
219
+
220
+ 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}`.
metadata_gallery.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d057f5b935fe249ba5533617002ad35d096a6ba76a1d21c71a98ed646bfb22b
3
+ size 59345700
metadata_hotels.json ADDED
The diff for this file is too large to render. See raw diff
 
metadata_test_non_object.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02027220c8343d3d43b8c89abc775701cf6459a977722915ce9fdeefe12afd56
3
+ size 13903925
metadata_test_object.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b181e327aabb95f40b56065812e56a0a3e7b6560dee36f8edee8aff2ad69fc2a
3
+ size 11811161
shards/gallery-00000.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2232b86c1bf8cd61e30085f132428c0404184bf1afcd502388af36dd9e62685e
3
+ size 4552693760
shards/gallery-00001.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efcc2046605af7b468aa9a6561ac9dc7d72a9dadda833d28f30a97be5f442bb4
3
+ size 4389396480
shards/gallery-00002.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b634fe375712b6e16c4a0c7d26b4de066d7eed4e7f6072ff723bee044413215
3
+ size 4707696640
shards/gallery-00003.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:554b8a9d9427f7e24f032439d94c4e825dfa8f552358293ac6b615784fa22b2b
3
+ size 4938936320
shards/gallery-00004.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd40483f3e07843b65de7109ef61836f335482cab328bcb1a76049395a492092
3
+ size 5014947840
shards/gallery-00005.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:582525fab9acba278610416a01b9e92cb073a9ecb51c1ae76069c772b382c1f8
3
+ size 4934942720
shards/gallery-00006.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:561e1c63d3f5fcd931228688649cab263ae6421c78a04d51a47336e72678072e
3
+ size 4809472000
shards/gallery-00007.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cf1939e1768a098b567198d940c72d203d76f3fe34d2a98c8574b989ed3ade7
3
+ size 4493701120
shards/gallery-00008.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6516f2283c287ec41eb5d5b4d321b5a88d9e57acac2c493d7395e73488f86fe5
3
+ size 4422471680
shards/gallery-00009.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:765ddaf4d5ce448f07b7b4a609cca67d362ed7666550d3da181d2dd96766e7e0
3
+ size 4684646400
shards/gallery-00010.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8dd7f0d625d94300ee9ca25a582b13b23a48bd26fbf9f3ec985105b74ccca94
3
+ size 4967055360
shards/gallery-00011.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff99accd52263a96755e8e73c2bacb59b670348973a0ca1c9b77ed03addbcd5c
3
+ size 4968192000
shards/gallery-00012.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:029eba33f18982fc924fcee88d32a0b057d592031b2bd892168b262958894e4e
3
+ size 4924569600
shards/gallery-00013.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe75921834547fe4e5fa4291ffb811e0c57b8318b887b4d510da355010413144
3
+ size 4871372800
shards/gallery-00014.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6867a7e9f48b2c64ea50c243db5062989f4d8b03ede01bff070d2ca474ac61f
3
+ size 7349841920
shards/gallery-00015.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abd10f1ec28dd277c5495ee08248c72851acfb7108768d25de50a76d7b26bf9d
3
+ size 7396505600
shards/gallery-00016.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e4d73ea8f95b4f1170ae4ed6869820696a83820e30e40b2615df2239efa11fa
3
+ size 7249633280
shards/gallery-00017.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:301dd38d2277d21d3c5f884c43359147b92c07895543cec6cb4b86c712c809dd
3
+ size 7235850240
shards/gallery-00018.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fad7d4a0b4096137c1eb3883ef92b5f1893df7b3a1b4fe8187d412bfb1f864e
3
+ size 7143546880
shards/gallery-00019.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d7849218bed03bbda337850d0b7d54ffb0ae69aa45ddb8614bb151b625db3e1
3
+ size 7296532480
shards/gallery-00020.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efb98341094256c58682749529d042099bc789c30b21a1f0b912767d77a46185
3
+ size 7521587200
shards/gallery-00021.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb6dc2e8223519faeb91dac968f0528a73c277a43bf6f0ae92caf4416d0aeac2
3
+ size 7197020160
shards/gallery-00022.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70e953d343a3c232c40fade8ba2efa7c9f7d1c488e0c631127aee0da924616df
3
+ size 7309486080
shards/gallery-00023.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f3bda4a9d3752d002324f6568f3d9b539a0be8ceb9432d7287e0206258511dd
3
+ size 7274004480
shards/gallery-00024.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:902d7ab964b1a8e0453d6311f1c735cad5d7d59b00045e4e8c5c051d39051bd5
3
+ size 7142451200
shards/gallery-00025.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:595ff275219212276bf4d89fdecf2bee5025fc515dfb93921923dcaf084a6834
3
+ size 2555330560
shards/test_non_object-00000.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2adb1c76ab4d5b46cc7c8477e1c170db3ef9383f8ef56beeef08ef516a73f512
3
+ size 4324177920
shards/test_non_object-00001.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfd288379ffaa51c58aea16ed1f9603b0d14b72bc97f5818d92744a4a286a28f
3
+ size 4355000320
shards/test_non_object-00002.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28fc91f4dfec18b108e26c289abc4f57779568ecd7d9b43dc9c05913e0ff76a9
3
+ size 4575457280
shards/test_non_object-00003.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49d9dac2d6bc30a668d688fe074feff229a6a1f0827c8baf3b841736cd85e042
3
+ size 4316651520
shards/test_non_object-00004.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cc1045d920b8cb64c28445d98c0fe865ad3894abfa798758e900fa4a0c729da
3
+ size 4409047040
shards/test_non_object-00005.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8cebeed9b46eb82f479c80e0b75f682c2e947792d2bef624beee5813b3ebec0a
3
+ size 4459581440
shards/test_non_object-00006.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d44df24ad7f94787afb2d317d22a5db9a5b229de195867fa0c5b2fa36fc93cfe
3
+ size 1232527360
shards/test_object-00000.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2033fafa27a790001ac20cff6175284ac5b2b04cfd172d2fe4272980b5dae6f5
3
+ size 7528161280
shards/test_object-00001.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a24f7985c167ee356f068a355b2f8b7af59af89b31012f7933924bd417e9b476
3
+ size 7456686080
shards/test_object-00002.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0bf7fe16ab8d747ef6792f270fbaafe4b9f6ca9b592b98267e5814382fe96a0
3
+ size 7392000000
shards/test_object-00003.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b258b63220878d63cddf5dde46aab3c51082733d2f557e49edd97640b06278bb
3
+ size 7538769920
shards/test_object-00004.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6e4f98b33d2d7e588e3d59ae2ee4073e376ee0ef4140159b3a1ae5e5c9d394e
3
+ size 7420723200
shards/test_object-00005.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e17e93c3d58e16a4275b68f675209b0323758ac3ddd708185a47829ceb2109d3
3
+ size 3622963200