인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

programmatic-api

programmatic-api

Guide Python users who want to call Matching, SuperPoint, SuperGlue, and the geometry/plotting utilities directly.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: programmatic-api description: "Guide Python users who want to call Matching, SuperPoint, SuperGlue, and the geometry/plotting utilities directly." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

Programmatic API

Use this sub-skill when you want to write Python code against the model classes and helper utilities instead of using the batch CLI or live demo.

In scope

  • models.Matching(config={}) composition and forward(data) behavior.
  • models.SuperPoint and models.SuperGlue configs, weights, and output contracts.
  • Direct inference on grayscale float tensors with shape 1x1xHxW.
  • Output tensors, unmatched id -1, and confidence interpretation.
  • Utility functions for image loading, resizing, pose estimation, pose error, AUC, and plotting.
  • CPU/CUDA device choice, eval(), and torch.no_grad() inference.

Route elsewhere

  • Batch image-pair CLI, pair files, .npz dumps, and pose-evaluation tables -> pair-matching-evaluation
  • Webcam, IP camera, video, or directory demo and visualization controls -> live-demo-and-visualization
  • Training code, retraining, or checkpoint editing -> unavailable in this repo

Bundled references

Bundled helpers

  • scripts/inspect_superglue_api.py
  • scripts/run_matching_api_smoke.py

Practical rule of thumb

Keep the model and inputs on the same device, use model.eval() plus torch.no_grad(), and start with a single image pair unless you have already normalized feature lengths across the batch.

The shipped checkpoints live with the repo, so the helpers do not download anything.

Preserve the repository license terms when reusing the bundled code or checkpoints.

저장한 Skills