算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
lightglue【设计与创意】Use LightGlue for local feature matching, extractor selection, matcher configuration, visualization, and benchmarking.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task involves LightGlue local feature matching: matching two images, choosing a supported feature extractor, validating feature dictionaries, configuring the matcher, plotting matches/pruning, or benchmarking latency.
LightGlue is an inference package for sparse local feature matching. It extracts or consumes keypoints/descriptors for two images and returns mutual correspondences plus scores and adaptive-depth/pruning diagnostics.
Install the public package or a local checkout with its runtime dependencies:
python -m pip install git+https://github.com/cvg/LightGlue.git
# or, in a local checkout:
python -m pip install -e .
Minimal import check:
from lightglue import LightGlue, SuperPoint, DISK, SIFT, ALIKED, DoGHardNet, match_pair
from lightglue.utils import load_image, rbd
Download-free API smoke check from this skill:
python scripts/lightglue_smoke.py --device cpu
This smoke check validates imports and synthetic tensor shapes with features=None; it does not validate pretrained matching quality.
| If the user asks to... | Read |
|---|---|
Match two image files, save a match plot, use match_pair, or interpret coordinate correspondences. | sub-skills/image-pair-matching/SKILL.md |
| Choose/configure SuperPoint, DISK, ALIKED, SIFT, or DoGHardNet, or validate precomputed feature dictionaries. | sub-skills/extractors-and-features/SKILL.md |
Call LightGlue directly, set thresholds, use features=None, disable adaptivity, compile, or interpret output keys. | sub-skills/matcher-configuration/SKILL.md |
Benchmark latency/throughput, use FlashAttention or torch.compile, tune pruning thresholds, or plot matches/keypoints/pruning. | sub-skills/performance-and-visualization/SKILL.md |
SIFT for offline feature-schema checks because the default OpenCV SIFT extractor does not download neural weights.features="superpoint", "disk", "aliked", "sift", or "doghardnet") for real pretrained matching; they may download matcher weights on first use.features=None only for precomputed/custom descriptors or API smoke checks. Random/untrained weights are not a matching-quality proof.This skill does not cover training LightGlue from scratch, full structure-from-motion/localization pipelines, third-party ONNX/TensorRT export projects, or generic computer-vision tasks unrelated to local feature matching.