Antriksha Search Engine (ASE)
Cross-modal satellite image retrieval engine indexing 16,000+ SAR and Optical tiles into a shared 512-D RemoteCLIP (ViT-B/32) embedding space with bifurcated FAISS IndexFlatL2 routing for sub-100ms Text→Image and SAR↔Optical search.
Problem Space
Geospatial analysts need to match radar (SAR) and optical satellite imagery across thousands of unlabeled tiles, yet naive single-index retrieval suffers from modality collapse where SAR queries only retrieve other SAR tiles.
Production Architecture
Encodes 16,000+ SAR and Optical tiles offline via RemoteCLIP ViT-B/32 into 512-D vectors and routes queries through bifurcated SAR and Optical FAISS IndexFlatL2 indexes inside a dark mission-control Streamlit dashboard.
Execution Pipeline
- STAGE 01
SAR-Optical Dataset Prep
split.py decomposes stitched Kaggle SAR-Optical pairs into distinct _SAR.png and _OPT.png gallery tiles.
- STAGE 02
Offline 512-D Indexing
build_db.py runs RemoteCLIP ViT-B/32 (extractor.py) across 16,000+ tiles to pre-compute database_vectors.npy and database_names.npy.
- STAGE 03
Bifurcated FAISS Routing
Maintains separate SAR and Optical IndexFlatL2 structures, detecting upload sensor modality and querying the opposite index for true cross-modal matches.
- STAGE 04
Mission UI & CSV Export
Linear/Vercel-inspired dark Streamlit dashboard returns Top-K matches for natural-language or image queries with downloadable CSV mission reports.
Key Engineering Trade-Offs & Decisions
- Chose domain-specific RemoteCLIP ViT-B/32 over generic CLIP to align overhead remote-sensing geometry and radar backscatter.
- Bifurcated FAISS indexes by modality to eliminate same-sensor modality collapse during SAR↔Optical lookups.
- Used exact FAISS IndexFlatL2 on pre-computed NumPy vectors for sub-100ms CPU retrieval with zero runtime re-encoding of gallery assets.
- Added standalone sanity verification (test_remote.py) validating torch.Size([1, 512]) embedding outputs.
Tech Stack
Local Streamlit application (streamlit run app.py) paired with external Google Drive gallery archive and offline RemoteCLIP ViT-B/32 weights.
Open-source repo: PRs, issues, and feature collabs are always welcome on GitHub.