HierGeo demo index
Files behind the in-browser search demo on the HierGeo project page. They are a compact copy of the HierGeo-Data retrieval index, laid out so that a web page can fetch one country or city shard at a time. For research use, take the corpus metadata and benchmark from shubhampatle/HierGeo-Data and the model from shubhampatle/HierGeo-CLIP-ViT-L-14.
Layout
Rows of every country are sorted by city, so each city is one contiguous slice.
| Path | Content |
|---|---|
manifest.json |
embedding size, quantisation ranges (lo, w), and for each country its file slug, size and [city, start, count] slices |
emb/<country>.bin |
uint8 [n, 768] image embeddings of the fine-tuned CLIP ViT-L/14, quantised per dimension: x ≈ lo + w * q |
thumbs/<country>.bin |
concatenated 256×256 JPEG previews of the patches |
idx/<country>.bin |
uint32 [n+1] byte offsets into thumbs, then uint32 [n+1] byte offsets into cap |
idx/<country>.rows.bin |
uint32 [n] row numbers in hiergeo_metadata.csv |
cap/<country>.txt |
concatenated UTF-8 captions |
global/pca128.bin, global/proj.bin |
whole-corpus index: uint8 [464553, 128] PCA projection of all embeddings (rows in the country order of manifest.json), and the float32 projection [128, 768] followed by its lo and w |
vocab.json, vocab.bin |
1,608 query phrases and their float32 text embeddings, so common queries need no model download |
A query is scored against a shard as Σ_d q[d] · (w[d] · t[d]), where t is the normalised text embedding. On three test countries the top-10 of the quantised index overlaps the full-precision top-10 by 97–98%.
Queries that name no supported country are ranked over the whole corpus with the 128-d index, and the best 100 candidates are re-scored with their full embeddings. This recovers about 92% of the exact top-12 on 150 test phrases.
Imagery and license
The previews are 256-pixel reductions of patches cut from Core-Five imagery (CC BY-NC 3.0 on its dataset card); imagery © the respective providers. This repository is for non-commercial research and demonstration only (CC BY-NC 4.0). Captions and place metadata come from HierGeo-Data.
- Downloads last month
- -