astylianou commited on
Commit
1813034
·
verified ·
1 Parent(s): 67f42af

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +0 -14
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
  ```