Instructions to use shuinb/Quantized-LingBot-Map with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LingBot-Map
How to use shuinb/Quantized-LingBot-Map with LingBot-Map:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
File size: 5,519 Bytes
6d4c6e0 de6f80a 6d4c6e0 de6f80a 6d4c6e0 de6f80a 6d4c6e0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | # Quantized LingBot-Map
[English](README.md) · [GitHub 源码和完整用法](https://github.com/shuinb/Quantized-LingBot-Map)
这里是当前使用的 Model 仓库。[原 Dataset 仓库](https://huggingface.co/datasets/shuinb/Quantized-LingBot-Map) 保留以兼容已有链接。
本模型仓库提供流式三维建图使用的**已校准 DSFQ 权重**,附带源码和已记录结果。DSFQ 在 GCT Linear 的 W4A4 量化中使用 Hadamard 旋转、通道平滑和可学习的权重/激活裁剪。
## 文件
| 路径 | 内容 |
|---|---|
| [models/dsfq/model.pt](models/dsfq/model.pt) | 可独立推理的 DSFQ 打包权重,约 1.91 GB |
| [models/dsfq/model_info.json](models/dsfq/model_info.json) | 精度、校准设置和上游信息 |
| [source/Quantized-LingBot-Map.zip](source/Quantized-LingBot-Map.zip) | 干净的源码项目,含中英文 README |
| [results/xyz.json](results/xyz.json) | TUM XYZ 732 帧真值对比 |
| [results/indoor.json](results/indoor.json) | Indoor Travel 5000 帧相对 BF16 的一致性 |
| [results/calibration_audit.json](results/calibration_audit.json) | 直接 W4A4 校准与 KV 精度核查 |
| `assets/`、`configs/` | 可视化、图标和校准/流式配置 |
权重量化覆盖 192 个 GCT Linear。DINO 保留 BF16,相机头和深度头保留 FP32;量化推理默认使用 FP4 KV 存储和 BF16 SDPA。校准使用独立 TUM desk/rpy 的 320 帧,每块六个流式状态、15 个重构 epoch。XYZ 和 Indoor 用于开发与评估,不是从未接触的盲测数据。
## 下载与运行
按照 [GitHub 中文 README](https://github.com/shuinb/Quantized-LingBot-Map/blob/main/README_zh.md) 安装后,在项目目录运行:
```bash
hf download shuinb/Quantized-LingBot-Map models/dsfq/model.pt \
--local-dir .
export CUDA_VISIBLE_DEVICES=0
python -m qmap infer --method dsfq --deployment models/dsfq/model.pt \
--images data/xyz/images --start 64 --frames 732 --output runs/xyz_dsfq
```
使用自己的图像时,提供按时间顺序命名的图像文件夹,将 `--start` 改为 `0`,`--frames` 改为实际帧数。每个推理进程使用一张可见 GPU。自动后端在 RTX 3080 等 SM8x GPU 上使用原生 S4,在其他支持的 CUDA GPU 上使用 4-bit 码值+INT8 GEMM。原生 S4 需要 CUDA toolkit 和 CUTLASS,安装说明见 GitHub。
BF16 参照使用上游 [robbyant/lingbot-map](https://huggingface.co/robbyant/lingbot-map) 权重。直接校准 W4A4 可通过源码的独立校准配置与 `python -m qmap calibrate --method w4a4` 复现。
## 重建展示


<p align="center"><img src="assets/orbit_xyz.gif" width="49%" alt="虚拟相机围绕固定 XYZ 点云旋转"> <img src="assets/orbit_showroom.gif" width="49%" alt="虚拟相机围绕固定展厅点云旋转"></p>
使用本仓库权重生成:GPU0 推理 732 帧 XYZ,GPU1 推理 496 帧 Indoor,输入均为 294×518。局部点云展示 XYZ 第 200–327 帧、Indoor 第 1216–1279 帧;各采样 64 个视图,像素步长 2,逐帧去除深度置信度最低的 20%。动图是固定预测点云的虚拟视角旋转,不表示在线建图速度。RGB/深度面板不做置信度遮罩,深度色阶在第 2/98 百分位饱和;没有引入真值几何、网格补全或重新校准。[渲染记录](results/gallery.json) · [复现命令](https://github.com/shuinb/Quantized-LingBot-Map/blob/main/docs/visualization.md)。
推理完成后,可在 CPU 上生成自己的面板、PLY 和可选动图:
```bash
CUDA_VISIBLE_DEVICES='' python -m qmap gallery --run runs/xyz_dsfq \
--output runs/xyz_gallery --title 'TUM XYZ / workspace' \
--frame 200 --map-start 136 --map-end 264 --pixel-stride 2 \
--yaw -25 --elevation 5 --animation-frames 40
```
帧参数均为当前推理序列内从 0 开始的索引。展示画布可以放大,模型输入分辨率仍为 294×518。
## 已记录结果
TUM XYZ,数值越低越好:
| 方法 | GT ATE(cm) | 平移 RPE(cm) | 深度 AbsRel(%) |
|---|---:|---:|---:|
| BF16 | 3.312 | 0.826 | 4.149 |
| 直接 LWC/LAC W4A4+FP4 KV | 8.805 | 3.844 | 5.600 |
| DSFQ+FP4 KV | 3.389 | 1.561 | 4.206 |


XYZ 第 164、429、694 帧:每个方法的每帧深度除以自身中位数,同一行统一采用 BF16 的第 2/98 百分位色阶,不做置信度遮罩。该图比较相对形状,不表示绝对尺度或真值误差。[PDF](assets/depth_comparison.pdf)。

Indoor 没有真值,指标仅表示与 BF16 的一致性。DSFQ 在 RTX 5090 上完成三轮 5000 帧测量:进程显存采样峰值 5.876 GB,最低 11.987 FPS/中位 12.477 FPS,使用 INT8 兼容后端。RTX 3080 的原生 S4 测试覆盖 248 帧:5.769 GB、5.611 FPS。完整运行差异和统计口径见源码 README 与结果文件。
## 许可与来源
源码和派生权重保留上游 Apache-2.0 条款,见 [LICENSE](LICENSE) 与 [NOTICE](NOTICE)。权重来自 [LingBot-Map](https://github.com/Robbyant/lingbot-map),量化参考 [QuantVGGT](https://github.com/wlfeng0509/QuantVGGT)。可视化使用已注明来源的 TUM RGB-D 和 Indoor Travel 评估序列。原始数据集按各自条款另行获取。
|