BEV / README.md
SammySnake's picture
Connect real BEV features to semantic-map matching with bounded NPZ inputs
bf99854 verified
|
Raw History Blame Contribute Delete
3 kB
---
title: BEV
emoji: πŸ’»
colorFrom: indigo
colorTo: green
sdk: gradio
sdk_version: 6.30.0
python_version: '3.12'
app_file: app.py
pinned: false
---
# Single-photo BEV + cross-view retrieval
This research Space runs real pretrained **OrienterNet-MGL** and **Sample4Geo-CVUSA** encoders. It is not a multi-camera autonomous-driving stack.
## Endpoints
- `/bev`: image, assumed horizontal FOV/pitch/roll, compute mode β†’ learned BEV feature visualization, raw NPZ, runtime receipt. **Not a reconstructed aerial photograph.**
- `/match_bev`: existing BEV NPZ + 1–12 caller-supplied semantic-map raster crops β†’ pretrained OrienterNet map encoding, exhaustive pose voting and unary prior; raw pose modes and heatmaps. CPU only. See `MAP_MATCHING.md` for the strict archive format. **Wrong maps can score higher; no target-presence or coordinate-verification claim.**
- `/embed`: image, `ground` or `satellite`, compute mode β†’ L2-normalized 1024D Sample4Geo vector and NPZ.
- `/rank`: ground image and 1–12 satellite candidate files, compute mode β†’ cosine ranking and NPZ. **No automatic global search. Scores are not probabilities or verified coordinates.**
- `/status`: actual runtime/backend, observed process/cgroup limits and model provenance.
`compute="cpu"` uses numerically checked ONNX Runtime. **BEV uses CPU only** (`auto` also means CPU): its GPU path failed the strict numerical comparison even after disabling TF32, so that path was not accepted. No tolerance was relaxed. For Sample4Geo embedding/ranking, `auto` attempts normal ZeroGPU inference, falling back to an independent CPU session only for recognized scheduler/quota failures; `gpu` returns GPU errors without fallback. Maximum GPU duration is 15 seconds, not a guaranteed quota multiplier. Hosting may sleep or be unavailable; no unlimited CPU claim.
API example: `API_EXAMPLE.py`. Use original photographs, not hallucination-prone generative restorations. Do not upload sensitive material to this public research service.
## Accuracy boundary
BEV camera parameters are explicit assumptions, not recovered calibration. `/bev` only extracts features; the separate `/match_bev` performs actual 2D semantic-map pose matching, with caller-supplied maps and projection metadata. No GPS or heading prior is injected. Its map-label coverage is not a completeness measurement, and raw peaks are not calibrated cross-map probabilities. Sample4Geo embeddings are separate from BEV features and cannot be directly interchanged. Cross-view retrieval requires a geographically appropriate candidate gallery and independent final scene/pose verification. Narrow-FOV/night Chinese photos are unvalidated domain shifts. No target-absent detector or coordinate accuracy is claimed.
See `ATTRIBUTION.md`, `UPSTREAM_LICENSE.txt` and `MODEL_PROVENANCE.json` for author checkpoints, hashes and restrictions. OrienterNet is CC-BY-NC. Sample4Geo has no clearly declared upstream license; this demo grants no commercial rights.