You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate a UMAP 3D visualization of all image embeddings:
120
-
121
-
```bash
122
-
cd github
123
-
python visualize_umap.py
124
-
```
125
-
126
-
This will:
127
-
1. Load embeddings from the database
128
-
2. Compute UMAP projections (cached for future runs)
129
-
3. Cluster embeddings for color coding
130
-
4. Generate an interactive HTML visualization
131
-
132
-
Open the generated HTML file in your browser and click on points to see image previews.
133
-
134
-
**Note:** The HTML results include "Open Image" and "Open Folder" links that use the `localexplorer:` protocol. To use these links, install a browser extension like [Local Explorer](https://chrome.google.com/webstore/detail/local-explorer/llbiblehpbpeflfgjcdfcpcakjhddedi) for Chrome/Edge. Without the extension, images will still display, but the file/folder links won't work.
135
-
136
116
## Model
137
117
138
118
This project uses [SigLIP 2 SO400M](https://huggingface.co/google/siglip2-so400m-patch14-224) from Google, which provides:
@@ -154,7 +134,6 @@ The SQLite database contains:
154
134
- Use `--inference-batch-size` to optimize GPU memory usage
155
135
- Enable `--profile` to identify bottlenecks
156
136
- The database uses WAL mode for better concurrent access
157
-
- UMAP projections are cached to avoid recomputation
0 commit comments