- 2026-11-30 β Launched the online interactive demo on Hugging Face Spaces.
- 2026-11-23 β Added the evaluation benchmark with dataset preparation and evaluation instructions.
- 2026-11-21 β Released the causal streaming inference code. See Model Download for the geometric streaming base model.
teasor.mp4
Watch the 1080p demo on Hugging Face
LingBot-Map 2.0 predicts camera poses and dense geometry from incoming RGB sequences. This repository provides the geometric streaming base model (without GCR) from the technical report, trained for causal Online Streaming.
- Streaming Reconstruction: Predict camera poses, intrinsics, depth and confidence from incoming RGB frames.
- Flexible Integration: Run reconstruction from the command line or integrate frame-by-frame inference and keyframe selection into your application.
Compared to LingBot-Map (V1), LingBot-Map 2.0 substantially reduces long-trajectory drift in causal online streaming across multi-kilometer benchmarks (sequence-averaged Sim(3)-aligned ATE (m) β, Technical Report Table 2):
| Method | Setting | KITTI (m) β | VBR (m) β | Oxford Spires (m) β |
|---|---|---|---|---|
| VGGT-Ξ© | Offline | 122.19 | 65.65 | 10.11 |
| LingBot-Map (V1) | Streaming | 24.07 | 31.12 | 8.25 |
| LingBot-Map 2.0 (Online Streaming) | Streaming | 17.56 | 17.01 | 6.17 |
Sequence-averaged Sim(3)-aligned ATE (m, lower is better) from Table 2 of the technical report across all 11 KITTI, 7 VBR, and 10 Oxford Spires full-timeline trajectories (VGGT-Ξ© is evaluated on Uniform480 keyframes with interpolation; LingBot-Map 2.0 (Online Streaming) corresponds to Ours (Online) under causal online inference).
Click to expand
- β Release model weights
- β Release streaming inference code
- β Release interactive demos and example sequences
- β Release evaluation benchmarks
1. Create a conda environment
conda create -n lingbot-map2 python=3.11 -y
conda activate lingbot-map22. Install PyTorch (CUDA 12.8)
A BF16-capable CUDA GPU and PyTorch 2.8 or later are required. For a CUDA 12.8 environment:
pip install torch==2.8.0 --index-url https://download.pytorch.org/whl/cu1283. Install the LingBot-Map 2.0 Geometric Streaming Base Model
Clone or download this repository, then run from its root directory:
pip install -e .FlashInfer is included in the package dependencies declared in pyproject.toml. If your package mirror does not carry it, install it with pip install --index-url https://pypi.org/simple flashinfer-python before installing this package.
4. Install benchmark dependencies (optional)
pip install -e ".[benchmark]"5. Install visualization dependencies (optional)
pip install -e ".[vis]"This installs the CPU build of ONNX Runtime for sky segmentation. To run
--mask-sky on CUDA, replace it with the GPU build in the same environment
after installing .[vis]:
python -m pip uninstall -y onnxruntime
python -m pip install onnxruntime-gpu
python -c "import onnxruntime as ort; print(ort.get_available_providers())"Look for CUDAExecutionProvider in the output. See the
ONNX Runtime CUDA requirements
for compatible CUDA and cuDNN versions.
| Model Name | Hugging Face | ModelScope | Description |
|---|---|---|---|
| LingBot-Map 2.0 Geometric Streaming Base Model | Hugging Face (Collection) | ModelScope | Pure causal checkpoint for online 3D reconstruction. |
Download the paired configuration (config.json) and weights (model_weights.pt) with download_model.py, which automatically validates the weight SHA-256:
From Hugging Face:
pip install -U huggingface_hub
python download_model.py --source hf --output checkpoints/base-streamingOr download directly with the Hugging Face CLI:
hf download robbyant/lingbot-map-v2-base-streaming \
config.json model_weights.pt --local-dir checkpoints/base-streamingFrom ModelScope:
pip install -U modelscope
python download_model.py --source modelscope --output checkpoints/base-streamingOr download directly with the ModelScope CLI:
modelscope download --model Robbyant/lingbot-map-v2 \
config.json model_weights.pt --local_dir checkpoints/base-streamingKeep model_weights.pt and config.json together and pass both paths as shown below. The released configuration describes the Geometric Streaming Base Model checkpoint; causal.example.json is only a schema example. The loader checks the checkpoint SHA256, causal training mode, and every parameter key and shape. It accepts a model-only tensor dictionary or a model tensor dictionary loaded with weights_only=True.
Run streaming reconstruction on a folder of RGB images:
python infer.py \
--checkpoint checkpoints/base-streaming/model_weights.pt \
--config checkpoints/base-streaming/config.json \
--images path/to/rgb \
--output outputs/sequenceImages are processed in natural filename order. The CLI retains Uniform320 keyframes while predicting every input frame; --keyframe-interval 1 retains every frame. Predictions include original raw_indices and are saved as .npz files containing poses, intrinsics, depth and confidence, alongside a run manifest. Use --image-list frames.json to supply an explicit input order.
Online Demo: Try LingBot-Map 2.0 directly in your browser on Hugging Face Spaces without local setup.
To run the Viser demo locally, first install the viewer dependencies. For faster sky masking on long sequences, follow the CUDA setup in that step.
python demo.py \
--checkpoint checkpoints/base-streaming/model_weights.pt \
--config checkpoints/base-streaming/config.json \
--images path/to/rgb --mask-skyOpen http://localhost:8080. The viewer mirrors LingBot-Map's interactive
Viser interface: Video Display (current RGB frame preview), Reset up
direction, Reset Defaults, and Reset View Direction presets (Look
At Scene Center, Overview, Front/Back/Top/Left/Right, First
Camera), 3D / 4D mode switching, Playback timeline and FPS controls,
display sliders (Focal Length, Point Size, Camera Size,
Downsample Factor, Show Camera, Visibility Threshold, Camera
Downsample Factor), Screenshot, Export GLB (Points/Spheres with
optional cameras and trajectory), and Video Saving (FFmpeg export of point
cloud and original RGB videos; pip install -e ".[vis]" bundles
imageio-ffmpeg, or a system ffmpeg binary on PATH is used if available).
The viewer stays open until you press Ctrl+C in the terminal.
Online streaming reconstructions produced by demo.py:
![]() Courthouse |
![]() University |
![]() The Bund |
![]() Apartment |
![]() KITTI 08 |
![]() Oxford Keble College 05 |
The four original example sequences are documented in example/:
courthouse, university, bund, and apartment (1,570 images, 0.918 GiB).
Download the original images from the Hugging Face example dataset. View all-time dataset downloads.
pip install -U huggingface_hub
hf download robbyant/lingbot-map-v2-examples --repo-type dataset \
courthouse.tar university.tar bund.tar apartment.tar --local-dir example
(cd example && for scene in courthouse university bund apartment; do tar -xf "$scene.tar" || exit 1; done)KITTI 08 and Oxford Keble College 05 are two additional long-trajectory examples built from official datasets. For KITTI, extract the fixed frames from the official ZIP. For Oxford, download the ready-to-use keyframes:
# KITTI 08 (321 preselected keyframes)
python example/prepare_kitti08.py /path/to/data_odometry_color.zip
python demo.py --checkpoint checkpoints/base-streaming/model_weights.pt \
--config checkpoints/base-streaming/config.json --images example/kitti08 \
--width 512 --height 288 --keyframe-interval 1 --depth-stride 1
# Oxford Keble College 05 (320 preselected keyframes from the 11,544-frame sequence)
hf download robbyant/lingbot-map-v2-examples --repo-type dataset oxford_keble_college_05.tar --local-dir example
tar -xf example/oxford_keble_college_05.tar -C example
python demo.py --checkpoint checkpoints/base-streaming/model_weights.pt \
--config checkpoints/base-streaming/config.json --images example/oxford_keble_college_05 \
--width 512 --height 384 --keyframe-interval 1 --depth-stride 1 --mask-skyThe interval of 1 retains every supplied keyframe. See the example README for the ordered manifest, image checksums and attribution.
Use --images path/to/rgb for your own image folder, or provide an ordered list
with --image-list frames.json. The matching causal checkpoint and JSON
configuration are required. --model_path and --image_folder are accepted
aliases. demo.py uses the same preprocessing as infer.py and caps persistent
KV-cache keyframes with --num-keyframes (default 320, keeping the
initialization prefix plus uniformly spaced frames through the final frame so
non-keyframes are predicted without entering the KV cache; inputs with up to
320 frames keep all frames, while setting --num-keyframes equal to the
8-frame initialization prefix retains only the initialization frames). Pass
--keyframe-interval to use a fixed interval instead.
You can also display a completed infer.py run without loading a model or using CUDA:
python demo.py --predictions outputs/sequence --mask-skyThe run must include depth and its original images must remain accessible at the
paths recorded in manifest.json. The viewer uses the recorded processed image
size to align RGB colors with predicted depth.
The drawing defaults follow LingBot-Map's demo with a compact default camera
scale: --point-size 0.00001, --camera-size 0.01 (slider range down to
0.001), --conf-threshold 1.5 (an absolute confidence threshold), and
--downsample-factor 10 (keep every tenth point after filtering). Cameras use
small, untextured frustums with a temporal color gradient; click a camera to
view the scene from its pose. Overview and Look At Scene Center use
camera positions to avoid letting far-away points dominate the view, and
Reset Defaults restores the initial sliders, 3D mode, and overview camera.
The visibility slider follows V1's range of 1 to 5, in steps of 0.01. Changing the threshold or downsample factor removes the old clouds and recreates them from the filtered, sampled points. Raw confidence scores can exceed 5; this slider is an absolute cutoff, not a percentile or probability.
--mask-sky enables the same ONNX sky segmentation and threshold as LingBot-Map.
On first use, the model is downloaded from
skyseg to
~/.cache/lingbot-map2/skyseg.onnx. Use --sky-model /path/to/skyseg.onnx for an
existing model and --sky-mask-dir /path/to/cache to reuse masks. Segmentation
uses CUDA when the GPU runtime is available, and falls back
to CPU automatically otherwise. If GPU memory is limited, pass --sky-cpu to
force sky segmentation to run on CPU (note that --sky-cpu is significantly
slower, especially on long image sequences). Segmentation runs on the processed RGB
canvas, aligned with the predicted depth.
--depth-stride optionally projects depth every N frames (default 1) while
keeping all camera frustums and RGB previews. These controls only affect
visualization; inference and saved predictions are left unchanged.
When available memory is low, demo.py automatically enables --low-vram.
This mode keeps the paged KV cache in CPU memory and runs inference in eager
mode. Every input frame still receives a camera pose and a dense depth map.
Use --low-vram or --no-low-vram to override automatic selection.
The server binds to 127.0.0.1:8080 by default. For a remote machine, forward the port:
ssh -L 8080:127.0.0.1:8080 user@hostUse --port to select another port, or --host to choose a different bind address.
Use --images for a naturally sorted image folder, or provide a JSON list of image paths with --image-list:
python infer.py \
--checkpoint checkpoints/base-streaming/model_weights.pt \
--config checkpoints/base-streaming/config.json \
--image-list frames.json \
--output outputs/sequenceRelative image paths in the list are resolved against the JSON file. Use a new output directory for each run.
load_model() returns a GCRStream, the causal streaming model in this release.
from lingbot_map2 import load_model
from lingbot_map2.utils.load_fn import image_paths, uniform_keyframe_ids
model = load_model(
"checkpoints/base-streaming/model_weights.pt",
config="checkpoints/base-streaming/config.json",
)
paths = image_paths("path/to/rgb", None)
keyframes = set(uniform_keyframe_ids(len(paths), prefix=model.config.scale_frames))
with model.create_stream() as stream:
for raw_id, path in enumerate(paths):
prediction = stream.online(path, persistent=raw_id in keyframes)
if prediction is not None:
print(prediction["poses_c2w"].shape)The first eight frames initialize the stream: the first seven calls return None, and the eighth returns predictions for the prefix. Each later call returns the current frame's prediction.
Inputs can be image paths, RGB arrays or preprocessed tensors. Outputs include camera-to-world poses, intrinsics, depth and confidence; depth and translation have arbitrary scene scale. See Inputs and Outputs below for shapes and coordinate conventions.
After initialization, choose whether each frame enters persistent memory:
prediction = stream.online(rgb_frame, persistent=is_keyframe)All initialization frames must be keyframes. For an external selector:
with model.create_stream() as stream:
for rgb, is_keyframe in arrivals:
prediction = stream.online(rgb, persistent=not stream.ready or is_keyframe)
if prediction is not None:
consume(prediction)After initialization, non-keyframes produce predictions without changing persistent KV, Camera state or the committed clock. frame_indices identifies committed positions, so a non-keyframe position can be reused by the next arrival. Keep raw input IDs in the caller; the CLI records these separately as raw_indices.
One active stream owns a model. Use the context manager or stream.close() to release its state; the synchronous API is not thread-safe. Closing before the full prefix arrives discards the pending frames.
| Argument | Default | Description |
|---|---|---|
--config |
<checkpoint>.json |
Matching causal checkpoint configuration |
--width, --height |
From configuration | Input size; each dimension must be divisible by 16 |
--device |
cuda:0 |
Inference device |
--compile / --no-compile |
Enabled | Compiled or eager streaming computation |
--depth / --no-depth |
Enabled | Include depth and confidence, or return pose-only outputs |
--keyframe-interval |
ceil(N/320) |
Retain the prefix, then every N-th frame; all frames produce outputs |
--max-frames |
From configuration | Maximum number of persistent frames |
The example configuration uses 512Γ288 input, an eight-frame prefix and a 64-frame sliding window. Image paths and RGB arrays are resized and center-cropped automatically.
stream.online() accepts one image path, an HWC uint8 RGB array, or a preprocessed
float32 [3,H,W] tensor. Paths and RGB arrays use float32 AREA cover-resize,
center crop and division by 255. Tensor inputs must already contain RGB values
in [0,1] at the configured size. Width and height must be positive multiples of
16; changing the aspect ratio changes the crop and field of view.
| Field | Shape | Meaning |
|---|---|---|
poses_c2w |
[N,4,4] |
Camera-to-world poses |
intrinsics |
[N,3,3] |
Intrinsics for the processed image size |
pose_enc |
[N,9] |
Translation, quaternion and field-of-view encoding |
depth |
[N,H,W,1] |
Depth, when enabled |
depth_conf |
[N,H,W] |
Depth confidence, when enabled |
frame_indices |
[N] |
Committed-clock positions |
N is the prefix size on initialization and one afterward. Coordinates use
x-right, y-down, z-forward. Depth and translation have arbitrary scene scale.
Outputs are owned CPU NumPy arrays by default; use
model.create_stream(output_device="cuda") for device tensors. Returned storage
remains valid across subsequent arrivals. Use load_model(..., depth=False) for
pose-only inference.
The CLI saves one .npz per prediction group, using raw input positions in
filenames. progress.json tracks written frames; manifest.json records source
paths, persistent raw IDs and completed outputs on completion or a caught failure.
Existing output directories are rejected to prevent overwriting predictions.
Evaluate the geometric streaming base model on the datasets used in the technical report:
| Task | Datasets |
|---|---|
| Camera trajectory | KITTI, VBR, Oxford Spires |
| Scene pose | CroCoDL, Tanks and Temples, Princeton365 |
| Dense reconstruction | CroCoDL, EuRoC, Oxford Spires |
Follow the Benchmark README to download and prepare the data. Set the dataset and checkpoint paths in the YAML configuration, then run:
cd benchmark
python prepare.py --config configs/kitti.yaml
python run.py --config configs/kitti.yaml
python evaluate.py --config configs/kitti.yamlUse the same workflow with another dataset configuration. The benchmark guide includes data preparation, configuration and evaluation metrics.
Public resource links will be added here as they become available.
| Resource | Link | Description |
|---|---|---|
| Technical Report | Read the PDF | Reconsolidatable Streaming 3D Reconstruction |
| arXiv | 2611.36099 (PDF) | Preprint and technical report |
| Project Website | Website | Project overview and visual results |
| Hugging Face | Geometric Streaming Base Model | Geometric streaming base model checkpoint and configuration |
| ModelScope | Geometric Streaming Base Model | Geometric streaming base model checkpoint mirror |
| Online Demo | Hugging Face Space | Interactive browser-based 3D reconstruction demo |
| Demo Video | Watch on Hugging Face | English streaming reconstruction demo |
The Robbyant Team licenses its original code and Geometric Streaming Base Model weights under CC BY-NC 4.0. Copyright 2026 The Robbyant Team Authors. Third-party components and adaptations retain their upstream licenses and copyright notices. See the third-party notices.
@misc{chen2026reconsolidatablestreaming3dreconstruction,
title={Reconsolidatable Streaming 3D Reconstruction},
author={Yihang Chen and Lin-Zhuo Chen and Jian Gao and Jiacheng Dong and Yao Yao and Nan Xue and Xing Zhu and Yujun Shen and Yinghao Xu},
year={2026},
eprint={2611.36099},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2611.36099},
}This implementation builds on LingBot-Map, LingBot-Vision, VGGT, DINOv3 and FlashInfer. Encoder adaptation credits and original notices are retained in the source and third-party notices.






