技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
custom-interop【数据与研究】Support custom HLoc features, retrieval descriptors, match files, modules, and data-format interoperability.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
BaseModel and dynamic_load contracts.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.txt
Add --strict when files are intended for HLoc sparse matching and should contain all matcher-friendly fields such as image_size and matching_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.
hloc.extractors or hloc.matchers namespaces, or already runs in another framework.hloc.extract_features.main, hloc.match_features.main, or the corresponding CLIs with a reusable named config.