How amap-cvlab/abot-recon works
ABot-Recon is a Python inference product for long video streams: users provide ordered images through the API or CLI, which preprocesses frames, runs a fixed-context streaming model, composes camera poses, and returns trajectory and optional point/confidence outputs. An optional loop-closure branch retrieves revisited frames, estimates pose constraints, and refines the trajectory. Streaming internals include windowed attention and KV state. The README documents the product stages; some subsystem links below are documented rather than verified in sampled implementation excerpts.
Main entry points: network.py Streaming network · api.py Python API · loop_closure.py Loop refinement · model.py Inference runtime
Components 23
User interface
- CLI
abot_recon/cli.py - Python API
abot_recon/api.py
Reconstruction inference
- Frame preprocessing
abot_recon/preprocessing.py - Checkpoint loading
abot_recon/checkpoint.py - Inference runtime
abot_recon/model.py - Pose composition
abot_recon/geometry.py - Reconstruction result
abot_recon/types.py
Streaming model
- Streaming network
abot_recon/modeling/streaming/network.py - Geometry predictor
abot_recon/modeling/pi3/models/pi3.py - Streaming attention
abot_recon/modeling/streaming/attention.py - Chunk attention
abot_recon/modeling/streaming/core/chunk_attention.py - Window masks
abot_recon/modeling/streaming/core/window_mask.py - KV state
abot_recon/modeling/streaming/kv_state.py - Paged KV
abot_recon/modeling/streaming/paged_kv.py - 3D rotary positions
abot_recon/modeling/streaming/rope3d.py - SDPA backend
abot_recon/modeling/streaming/sdpa.py
Loop closure
- Loop refinement
abot_recon/loop_closure.py - Frame retrieval
abot_recon/sparse_loop/retrieval.py - Sparse keyframes
abot_recon/sparse_loop/sparse_keyframes.py - Pose graph
abot_recon/sparse_loop/graph.py - Graph optimizer
abot_recon/sparse_loop/gpu_pgo.py - Retrieval assets
abot_recon/sparse_loop/assets.py
Other components
- Image sequence
Connections 27
- Image sequence → CLI: provides frames
README.md - Image sequence → Python API: provides frames
README.md - CLI → Python API: invokes inference
abot_recon/cli.py - Python API → Frame preprocessing: prepares frames
abot_recon/api.py - Python API → Inference runtime: runs model
abot_recon/api.py - Python API → Checkpoint loading: resolves weights
abot_recon/api.py - Inference runtime → Checkpoint loading: loads weights
abot_recon/model.py - Inference runtime → Streaming network: constructs network
abot_recon/model.py - Inference runtime → Frame preprocessing: consumes frames
abot_recon/model.py - Streaming network → Geometry predictor: predicts geometry
abot_recon/modeling/streaming/network.py - Streaming network → Streaming attention: dispatches attention
abot_recon/modeling/streaming/network.py - Streaming network → KV state: maintains state
abot_recon/modeling/streaming/network.py - Streaming network → Paged KV: uses cache backend
abot_recon/modeling/streaming/network.py - Streaming network → Chunk attention: runs chunk attention
abot_recon/modeling/streaming/network.py - Streaming network → 3D rotary positions: builds positions
abot_recon/modeling/streaming/network.py - Streaming network → SDPA backend: uses fallback
abot_recon/modeling/streaming/network.py - Streaming attention → Chunk attention: delegates chunks
abot_recon/modeling/streaming/attention.py - Chunk attention → Window masks: applies masks
abot_recon/modeling/streaming/core/chunk_attention.py - Inference runtime → Pose composition: composes poses
abot_recon/api.py - Python API → Loop refinement: optionally refines
abot_recon/api.py - Loop refinement → Frame retrieval: retrieves candidates
abot_recon/loop_closure.py - Loop refinement → Sparse keyframes: selects keyframes
abot_recon/loop_closure.py - Loop refinement → Pose graph: builds constraints
abot_recon/loop_closure.py - Pose graph → Graph optimizer: optimizes graph
abot_recon/sparse_loop/graph.py - Loop refinement → Retrieval assets: loads assets
abot_recon/loop_closure.py - Python API → Reconstruction result: returns outputs
abot_recon/api.py - Loop refinement → Inference runtime: estimates loop poses
README.md