gradslam
Routes GradSLAM package workflows for RGB-D structures, tensor geometry, odometry and SLAM, dataset adapters, and CfgNode configuration on a CPU-first installation.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- gradslam
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes GradSLAM package workflows for RGB-D structures, tensor geometry, odometry and SLAM, dataset adapters, and CfgNode configuration on a CPU-first installation.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/api-surface.md3.0 KB
- 参考文档references/compatibility.md2.9 KB
- 参考文档references/repo-provenance.md1.4 KB
- 参考文档references/repo-routing-metadata.json421 B
- 参考文档references/troubleshooting.md4.7 KB
- 脚本scripts/check_environment.py3.9 KB
03 SKILL.md 正文
GradSLAM operating guide
Use this repo skill when a Researcher needs the public gradslam Python
package for dense RGB-D geometry, RGB-D/point-cloud structures, odometry,
PointFusion or ICPSLAM, TUM/ICL/ScanNet loading, or CfgNode configuration.
This is operating context for a later Researcher, not a benchmark recipe and
not a replacement for the package's external datasets.
Start here
- Create an isolated environment, then install the public release with
python -m pip install gradslam. When the exact source baseline is required, install the pinned public Git revision instead:python -m pip install 'git+https://github.com/gradslam/gradslam.git@44470eee4484aaad703d7bf962a8f42496867a9d'. - Run
python -m pip check, then resolve and run the bundled environment diagnosticscripts/check_environment.py. Start with--help; the script reports import and backend facts without installing or changing anything. - Read compatibility before selecting a dependency combination. CPU is the required verified path; successful CPU execution does not certify CUDA.
- Record the input tensor contract, device, image layout, depth units, pose availability, and external-data boundary before calling package APIs.
- Route to exactly one focused sub-skill, then use its API/reference page and its deterministic helper where one exists.
Route by user intent
- RGB-D tensors, vertex/normal maps, point-cloud conversion, ragged clouds, or safe display adapters: structures.
- Projection, unprojection, intrinsics, pixel grids, rigid transforms, quaternions, or SE(3): geometry.
- Known-pose, ICP, GradICP, PointFusion, ICPSLAM, map fusion, or odometry diagnostics: odometry-slam.
- TUM, ICL-NUIM, ScanNet paths, association metadata, preprocessing, labels, or DataLoader handoff: datasets.
- Nested config trees, YAML/Python files, merge precedence, overrides, freezing, or migration diagnostics: configuration.
Cross-skill routing is intentional: datasets produce the RGB-D batch, structures validate its layout, geometry supplies transforms, and odometry/SLAM consumes the resulting objects. Do not skip the upstream shape and units check.
Package boundaries
- The package imports Open3D during
import gradslam; a missing or incompatible optional-looking dependency can therefore be an import blocker. - The historical package metadata permits older Torch/dependency combinations, but exact compatibility is release- and extension-dependent. Follow the compatibility and troubleshooting references instead of blindly upgrading one binary package.
- External TUM, ICL-NUIM, and ScanNet data are not bundled. Layout checks are read-only preflight, not proof that images, poses, or timestamp association are valid.
- The bundled smoke programs use tiny deterministic in-memory CPU fixtures. They do not validate an external sequence, a full benchmark, CUDA behavior, a GUI viewer, or notebook execution.
- Keep colors, depths, intrinsics, poses, and map tensors on a deliberate
device. Keep names, transforms, timestamps, semantic labels, and config
metadata outside
RGBDImagesunless an API explicitly accepts them.
Self-contained references
- API surface — package exports and direct-module entry points.
- Compatibility — supported claims, dependency caveats, and CPU/CUDA boundaries.
- Troubleshooting — install/import, extension, device, data, and cross-workflow failures.
- Provenance — source version and evidence baseline.
- Environment checker — no-mutation import and backend diagnostic.
Safe operating sequence
Prefer a short, observable progression: import check → tiny tensor or config fixture → focused sub-skill smoke → one small caller-owned data item → only then longer SLAM or dataset work. Stop when a required invariant fails. Do not invent poses, silently rescale depth, download data, open a viewer, or claim an accelerator path from a CPU-only result.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).