custom-interop
Support custom HLoc features, retrieval descriptors, match files, modules, and data-format interoperability.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- custom-interop
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Support custom HLoc features, retrieval descriptors, match files, modules, and data-format interoperability.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/data-formats.md8.6 KB
- 参考文档references/extension-guide.md10.5 KB
- 参考文档references/troubleshooting.md8.8 KB
03 SKILL.md 正文
custom-interop
Use this sub-skill when the user already has, or wants to create, non-standard inputs for HLoc: externally computed local features, global image descriptors, sparse match files, custom PyTorch extractors or matchers, query/image/retrieval/pose lists, or an interoperability validator before routing into HLoc workflows.
Route here for
- Supplying local feature HDF5 files instead of running a built-in extractor.
- Supplying global descriptor HDF5 files for retrieval pair generation.
- Supplying sparse match HDF5 files instead of running a built-in matcher.
- Adding a custom extractor or matcher module that follows HLoc's
BaseModelanddynamic_loadcontracts. - Checking pair names, image/query lists, retrieval files, pose result files, and HDF5 schema compatibility.
Route elsewhere
- To choose or run built-in feature, retrieval, sparse matching, or dense matching configurations, load sibling feature-retrieval.
- To reconstruct, triangulate, generate mapping/localization pairs, or localize queries from validated artifacts, load sibling mapping-localization.
- To plan Aachen, InLoc, 4Seasons, 7Scenes, CMU, Cambridge, RobotCar, or other benchmark-scale dataset procedures, load sibling dataset-pipelines.
Operating flow
-
Identify whether the user is extending HLoc with a Python module or exporting external artifacts.
-
For Python modules/configs, follow references/extension-guide.md for
BaseModel,dynamic_load, module naming,default_conf,required_inputs, and config dictionary rules. -
For external files, follow references/data-formats.md for feature, global descriptor, match, retrieval, list, and pose schemas.
-
Validate candidate artifacts before using them downstream:
python sub-skills/custom-interop/scripts/validate_hloc_formats.py \ --features outputs/features.h5 \ --matches outputs/matches.h5 \ --retrieval pairs-query-db.txt \ --image-list queries_with_intrinsics.txtAdd
--strictwhen files are intended for HLoc sparse matching and should contain all matcher-friendly fields such asimage_sizeandmatching_scores0. -
If validation passes, route the next step to feature-retrieval for retrieval-pair generation or built-in matching, or to mapping-localization for SfM/localization.
-
If validation fails, use references/troubleshooting.md to map symptoms to likely schema, naming, parser, or custom-module contract errors.
Quick decisions
- Prefer exporting HDF5 artifacts when the user's model is not PyTorch-based, cannot be cleanly imported into the
hloc.extractorsorhloc.matchersnamespaces, or already runs in another framework. - Prefer a custom module when the user wants to call
hloc.extract_features.main,hloc.match_features.main, or the corresponding CLIs with a reusable named config. - Always keep image names consistent across image lists, feature groups, retrieval pairs, match groups, SfM model image names, and localization queries. A single slash, prefix, or basename mismatch is enough to make downstream code report missing images, missing pairs, or absent HDF5 groups.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.