Print labels of the images

This commit is contained in:
pranavbrkr 2023-11-24 10:57:17 -07:00
parent c7812bdbfb
commit e5d296f438

View File

@ -190,7 +190,7 @@
"for index, vector in enumerate(even_feature_vectors):\n", "for index, vector in enumerate(even_feature_vectors):\n",
" lsh.add_vector(vector.tolist(), index * 2)\n", " lsh.add_vector(vector.tolist(), index * 2)\n",
"\n", "\n",
"query_vector = np.array(odd_feature_vectors[(query_image_id // 2)]) # You can replace this with your query vector\n", "query_vector = np.array(odd_feature_vectors[(query_image_id // 2)])\n",
"\n", "\n",
"result_t_unique, unique_count, overall_count = lsh.query_t_unique(query_vector, t)\n", "result_t_unique, unique_count, overall_count = lsh.query_t_unique(query_vector, t)\n",
"print(f\"Number of unique vectors considered: {unique_count}\")\n", "print(f\"Number of unique vectors considered: {unique_count}\")\n",