Add the text-to-image retrieval system to Featured Models
Browse files
README.md
CHANGED
|
@@ -20,8 +20,10 @@ short_description: Open-source fashion intelligence and visual search.
|
|
| 20 |
<section>
|
| 21 |
<h2>MODA Fashion Retrieval</h2>
|
| 22 |
<p>
|
| 23 |
-
MODA is a family of fashion
|
| 24 |
-
|
|
|
|
|
|
|
| 25 |
</p>
|
| 26 |
<p>
|
| 27 |
<a href="https://huggingface.co/spaces/HopitAI/moda-fashion-search">Try the interactive demo</a>
|
|
@@ -37,26 +39,37 @@ short_description: Open-source fashion intelligence and visual search.
|
|
| 37 |
<table>
|
| 38 |
<tr>
|
| 39 |
<th>Model</th>
|
|
|
|
| 40 |
<th>Best for</th>
|
| 41 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
<tr>
|
| 43 |
<td><a href="https://huggingface.co/HopitAI/moda-fashion-distilled">MODA-Fashion-Distilled</a></td>
|
|
|
|
| 44 |
<td>Best overall quality</td>
|
| 45 |
</tr>
|
| 46 |
<tr>
|
| 47 |
<td><a href="https://huggingface.co/HopitAI/moda-fashion-distilled-512d">MODA-Fashion-Distilled-512d</a></td>
|
|
|
|
| 48 |
<td>Compact vector search indexes</td>
|
| 49 |
</tr>
|
| 50 |
<tr>
|
| 51 |
<td><a href="https://huggingface.co/HopitAI/moda-fashion-deepfashion2">MODA-Fashion-DeepFashion2</a></td>
|
|
|
|
| 52 |
<td>Simple reproducible recipe</td>
|
| 53 |
</tr>
|
| 54 |
<tr>
|
| 55 |
<td><a href="https://huggingface.co/HopitAI/moda-fashion-vision-fp16">MODA-Fashion-Vision-FP16</a></td>
|
|
|
|
| 56 |
<td>Smaller edge and mobile deployment</td>
|
| 57 |
</tr>
|
| 58 |
<tr>
|
| 59 |
<td><a href="https://huggingface.co/HopitAI/moda-fashion-matryoshka">MODA-Fashion-Matryoshka</a></td>
|
|
|
|
| 60 |
<td>Flexible embedding dimensions</td>
|
| 61 |
</tr>
|
| 62 |
</table>
|
|
@@ -65,6 +78,8 @@ short_description: Open-source fashion intelligence and visual search.
|
|
| 65 |
<section>
|
| 66 |
<h2>Quick Start</h2>
|
| 67 |
|
|
|
|
|
|
|
| 68 |
```bash
|
| 69 |
huggingface-cli download HopitAI/moda-fashion-deepfashion2 --local-dir ./moda-fashion-deepfashion2
|
| 70 |
```
|
|
@@ -76,11 +91,26 @@ model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms(
|
|
| 76 |
"hf-hub:HopitAI/moda-fashion-deepfashion2"
|
| 77 |
)
|
| 78 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
</section>
|
| 80 |
|
| 81 |
<section>
|
| 82 |
<h2>Use Cases</h2>
|
| 83 |
<ul>
|
|
|
|
| 84 |
<li>Find visually similar products in a fashion catalog.</li>
|
| 85 |
<li>Match street-style looks to shoppable items.</li>
|
| 86 |
<li>Deduplicate product images across marketplaces.</li>
|
|
|
|
| 20 |
<section>
|
| 21 |
<h2>MODA Fashion Retrieval</h2>
|
| 22 |
<p>
|
| 23 |
+
MODA is a family of fashion retrieval models covering both halves of the
|
| 24 |
+
problem: finding products from an image, and finding products from a text
|
| 25 |
+
description. Every model and result is MIT licensed and reproducible from
|
| 26 |
+
the public repository.
|
| 27 |
</p>
|
| 28 |
<p>
|
| 29 |
<a href="https://huggingface.co/spaces/HopitAI/moda-fashion-search">Try the interactive demo</a>
|
|
|
|
| 39 |
<table>
|
| 40 |
<tr>
|
| 41 |
<th>Model</th>
|
| 42 |
+
<th>Task</th>
|
| 43 |
<th>Best for</th>
|
| 44 |
</tr>
|
| 45 |
+
<tr>
|
| 46 |
+
<td><a href="https://huggingface.co/HopitAI/moda-fashionsiglip-multiview-203m">MODA-FashionSigLIP-MultiView-203M</a></td>
|
| 47 |
+
<td>Text to image</td>
|
| 48 |
+
<td>Searching a catalog in plain language. Multi-view retrieval system over the frozen FashionSigLIP checkpoint, adding zero parameters.</td>
|
| 49 |
+
</tr>
|
| 50 |
<tr>
|
| 51 |
<td><a href="https://huggingface.co/HopitAI/moda-fashion-distilled">MODA-Fashion-Distilled</a></td>
|
| 52 |
+
<td>Image to image</td>
|
| 53 |
<td>Best overall quality</td>
|
| 54 |
</tr>
|
| 55 |
<tr>
|
| 56 |
<td><a href="https://huggingface.co/HopitAI/moda-fashion-distilled-512d">MODA-Fashion-Distilled-512d</a></td>
|
| 57 |
+
<td>Image to image</td>
|
| 58 |
<td>Compact vector search indexes</td>
|
| 59 |
</tr>
|
| 60 |
<tr>
|
| 61 |
<td><a href="https://huggingface.co/HopitAI/moda-fashion-deepfashion2">MODA-Fashion-DeepFashion2</a></td>
|
| 62 |
+
<td>Image to image</td>
|
| 63 |
<td>Simple reproducible recipe</td>
|
| 64 |
</tr>
|
| 65 |
<tr>
|
| 66 |
<td><a href="https://huggingface.co/HopitAI/moda-fashion-vision-fp16">MODA-Fashion-Vision-FP16</a></td>
|
| 67 |
+
<td>Image to image</td>
|
| 68 |
<td>Smaller edge and mobile deployment</td>
|
| 69 |
</tr>
|
| 70 |
<tr>
|
| 71 |
<td><a href="https://huggingface.co/HopitAI/moda-fashion-matryoshka">MODA-Fashion-Matryoshka</a></td>
|
| 72 |
+
<td>Image to image</td>
|
| 73 |
<td>Flexible embedding dimensions</td>
|
| 74 |
</tr>
|
| 75 |
</table>
|
|
|
|
| 78 |
<section>
|
| 79 |
<h2>Quick Start</h2>
|
| 80 |
|
| 81 |
+
Image to image, for finding visually similar products:
|
| 82 |
+
|
| 83 |
```bash
|
| 84 |
huggingface-cli download HopitAI/moda-fashion-deepfashion2 --local-dir ./moda-fashion-deepfashion2
|
| 85 |
```
|
|
|
|
| 91 |
"hf-hub:HopitAI/moda-fashion-deepfashion2"
|
| 92 |
)
|
| 93 |
```
|
| 94 |
+
|
| 95 |
+
Text to image, for searching a catalog in plain language:
|
| 96 |
+
|
| 97 |
+
```bash
|
| 98 |
+
pip install "git+https://huggingface.co/HopitAI/moda-fashionsiglip-multiview-203m"
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
```python
|
| 102 |
+
from moda_fashionsiglip_multiview import ModaFashionSigLIP
|
| 103 |
+
|
| 104 |
+
retriever = ModaFashionSigLIP.from_pretrained()
|
| 105 |
+
index = retriever.build_index(image_paths, item_ids=item_ids)
|
| 106 |
+
results = retriever.search("red floral summer dress", index, top_k=5)[0]
|
| 107 |
+
```
|
| 108 |
</section>
|
| 109 |
|
| 110 |
<section>
|
| 111 |
<h2>Use Cases</h2>
|
| 112 |
<ul>
|
| 113 |
+
<li>Search a fashion catalog with a natural-language query.</li>
|
| 114 |
<li>Find visually similar products in a fashion catalog.</li>
|
| 115 |
<li>Match street-style looks to shoppable items.</li>
|
| 116 |
<li>Deduplicate product images across marketplaces.</li>
|