Datasets:
Formats:
json
Languages:
English
Size:
< 1K
Tags:
hotel-identification
image-retrieval
visual-place-recognition
object-centric-retrieval
representative-sample
License:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -152,17 +152,3 @@ object_image = load_image(object_row)
|
|
| 152 |
print(object_row["hotel_id"], object_row["path"])
|
| 153 |
print("object type:", object_row["object_type"])
|
| 154 |
```
|
| 155 |
-
|
| 156 |
-
For retrieval evaluation, compare each query row's `hotel_id` against ranked gallery rows or gallery predictions aggregated by `hotel_id`.
|
| 157 |
-
|
| 158 |
-
```python
|
| 159 |
-
gallery_by_hotel = {}
|
| 160 |
-
for row in gallery:
|
| 161 |
-
gallery_by_hotel.setdefault(row["hotel_id"], []).append(row)
|
| 162 |
-
|
| 163 |
-
query_row = non_object_row
|
| 164 |
-
positive_gallery_rows = gallery_by_hotel[query_row["hotel_id"]]
|
| 165 |
-
|
| 166 |
-
print("query hotel:", query_row["hotel_id"])
|
| 167 |
-
print("matching gallery images:", len(positive_gallery_rows))
|
| 168 |
-
```
|
|
|
|
| 152 |
print(object_row["hotel_id"], object_row["path"])
|
| 153 |
print("object type:", object_row["object_type"])
|
| 154 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|