mapping-localization
Operate hloc pair generation, COLMAP/pycolmap mapping, triangulation, SfM localization, InLoc localization, and pose outputs.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- mapping-localization
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate hloc pair generation, COLMAP/pycolmap mapping, triangulation, SfM localization, InLoc localization, and pose outputs.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-and-cli.md9.0 KB
- 参考文档references/data-contracts.md7.5 KB
- 参考文档references/troubleshooting.md7.7 KB
- 参考文档references/workflows.md12.0 KB
- 脚本scripts/validate_hloc_inputs.py23.6 KB
03 SKILL.md 正文
mapping-localization
Use this sub-skill when the task is to turn prepared hloc features, retrieval descriptors, matches, image lists, and/or existing camera poses into image pairs, COLMAP/pycolmap sparse models, triangulated reference models, or query poses.
Route here for
- Pair files from exhaustive image sets, retrieval descriptors, covisibility, or known poses.
hloc.reconstruction.main/python -m hloc.reconstructionsparse reconstruction.hloc.triangulation.main/python -m hloc.triangulationtriangulation from known camera poses.hloc.localize_sfm.main/python -m hloc.localize_sfmquery localization against a COLMAP/pycolmap SfM model.hloc.localize_inloc.main/python -m hloc.localize_inlocInLoc-style RGB-D scan localization.- NVM-to-COLMAP import planning with
python -m hloc.colmap_from_nvm.
Route away
- Feature extractor, global descriptor, dense matcher, sparse matcher, or built-in config selection details: use
../feature-retrieval/. - Benchmark-specific directory/download/submission layouts such as Aachen, 4Seasons, RobotCar, or complete InLoc dataset setup: use
../dataset-pipelines/. - Creating custom extractors/matchers or external HDF5 feature/match exports: use
../custom-interop/.
Required operating contract
Before running mapping or localization, identify these artifacts explicitly:
- Image root and any image/query list files.
- Pair or retrieval file, with exactly two whitespace-separated image names per line.
- HDF5 local features and HDF5 matches with hloc-compatible group/dataset names.
- For reconstruction: output SfM directory, image directory, feature file, match file, and pair file.
- For triangulation/localization: a reference COLMAP/pycolmap model directory with binary model files.
- For query localization: query intrinsics list and output pose path.
- For InLoc-style localization: retrieval pairs, query/database feature and match files, and scan/alignment files in the dataset tree.
Run the bundled validator when accepting user-supplied paths or text files:
python sub-skills/mapping-localization/scripts/validate_hloc_inputs.py \
--workflow localize-sfm \
--query-list queries_with_intrinsics.txt \
--pairs retrieval.txt \
--features features.h5 \
--matches matches.h5 \
--reference-model sfm_model
References
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).