mirror of
https://github.com/20kaushik02/CSE515_MWDB_Project.git
synced 2025-12-06 07:54:07 +00:00
more comments
This commit is contained in:
parent
cfda9fb4cd
commit
6ca1a3de94
@ -151,6 +151,9 @@
|
||||
" fig, axes = plt.subplots(1, k, figsize=(15, 5))\n",
|
||||
"\n",
|
||||
" for i in range(k):\n",
|
||||
" # caltechDataset[similar_images[i][\"_id\"]][1] because\n",
|
||||
" # similar_images[i][\"_id\"] will provide me the image id\n",
|
||||
" # [1] will be image pixel values since caltechDataset is in format (id, pixels, label)\n",
|
||||
" axes[i].imshow(caltechDataset[similar_images[i][\"_id\"]][1].permute(1, 2, 0))\n",
|
||||
" axes[i].set_title(f'id: {similar_images[i][\"_id\"]}')\n",
|
||||
"\n",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user