Barvero commited on
Commit
720ee1b
Β·
verified Β·
1 Parent(s): 9311b11

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -11
README.md CHANGED
@@ -12,24 +12,26 @@ pinned: false
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
13
 
14
  CLIP Image Recommender (Stanford Online Products) -
 
15
  This project implements an image-based recommendation system using CLIP embeddings and cosine similarity.
16
- A user uploads an image, the app converts it into an embedding vector using the same pretrained CLIP model used for the dataset, and then returns the Top-3 most visually similar items from the dataset.
 
17
 
18
  Dataset -
19
- Source: JamieSJS/stanford-online-products (Hugging Face)
20
- Modality: images
21
- Working subset: 3,000 randomly sampled items (for efficiency and reproducibility)
22
 
23
  Method -
24
- Precompute CLIP image embeddings for a random subset of 3,000 images
25
- L2-normalize embeddings to support cosine similarity
26
- At inference time: embed the uploaded image β†’ compute similarity β†’ return Top-3 recommendations
27
- Results are shown as a gallery + similarity scores
28
 
29
  Files in the repo -
30
- app.py – Gradio application
31
- clip_embeddings_3000.parquet – precomputed normalized embeddings
32
- sampled_indices_3000.npy – indices of the sampled subset (reproducibility)
33
 
34
  How to use -
35
  Upload an image β†’ the system returns the 3 most visually similar products.
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
13
 
14
  CLIP Image Recommender (Stanford Online Products) -
15
+
16
  This project implements an image-based recommendation system using CLIP embeddings and cosine similarity.
17
+ A user uploads an image, the app converts it into an embedding vector using the same pretrained CLIP model used for the dataset,
18
+ and then returns the Top-3 most visually similar items from the dataset.
19
 
20
  Dataset -
21
+ - Source: JamieSJS/stanford-online-products (Hugging Face)
22
+ - Modality: images
23
+ - Working subset: 3,000 randomly sampled items (for efficiency and reproducibility)
24
 
25
  Method -
26
+ - Precompute CLIP image embeddings for a random subset of 3,000 images
27
+ - L2-normalize embeddings to support cosine similarity
28
+ - At inference time: embed the uploaded image β†’ compute similarity β†’ return Top-3 recommendations
29
+ - Results are shown as a gallery + similarity scores
30
 
31
  Files in the repo -
32
+ - app.py – Gradio application
33
+ - clip_embeddings_3000.parquet – precomputed normalized embeddings
34
+ - sampled_indices_3000.npy – indices of the sampled subset (reproducibility)
35
 
36
  How to use -
37
  Upload an image β†’ the system returns the 3 most visually similar products.