Skip to main content

just-matching

FlexGlue and LightGlue image matching in C++ with minimal dependencies, for Python. No PyTorch: the library reads the released checkpoints itself and runs on the CPU, on Apple GPUs (Metal) and on NVIDIA GPUs (CUDA).

Package Platforms Backends
just-matching Linux x86_64, macOS arm64 (13 or later), Windows x86_64 CPU; Metal on macOS
just-matching-cu12 Linux x86_64, Windows x86_64 CPU, CUDA 12 (NVIDIA driver R525 or later)
just-matching-cu13 Linux x86_64, Windows x86_64 CPU, CUDA 13 (NVIDIA driver R580 or later)

All three provide the module just_matching; install one. The CUDA packages need only the NVIDIA driver (the CUDA runtime is built in) and a GPU of compute capability 7.5 (Turing) or later. Python 3.12 or later.

pip install just-matching        # or just-matching-cu12, just-matching-cu13

Weights

No weights are in the packages. Download them from their authors and give the file (or its bytes) to Matcher; the library reads the checkpoints as released, without PyTorch.

LightGlue for ALIKED descriptors, under the Apache License 2.0 (Computer Vision and Geometry Lab), from LightGlue's v0.1_arxiv release:

File Model SHA-256
aliked_lightglue.pth lightglue-aliked: ALIKED keypoints and descriptors d975e965b105311a6143194852297dff4f02aea5cc2e10cecfed966ca0e22503
raco_aliked_lightglue.pth lightglue-raco-aliked: RaCo keypoints described by ALIKED a804c3fe2851cc3c765cda6a9f412845893c8d8e2a3048f848d7f6ba172e6312

FlexGlue: flexglue.pth (567 MB) from FlexGlue's v0.1 release, SHA-256 d7371f743b8cdc4adf723c2aa05b181587fe4bc177fced139697975dff790068. Its matcher and descriptor heads are MIT; its backbone is Meta's DINOv3 ConvNeXt-B, under the DINOv3 License, which you accept by using the file: read it first. just-matching never distributes these weights.

The keypoints and descriptors LightGlue matches come from just-keypoints (aliked-n16, alone or describing RaCo's keypoints).

LightGlue

import just_matching as jmt

m = jmt.Matcher("aliked_lightglue.pth")                   # backend="cuda" or "metal" for the GPU
a = m.describe_keypoints(width_a, height_a, xy_a, desc_a)  # xy (n, 2), desc (n, 128) float32
b = m.describe_keypoints(width_b, height_b, xy_b, desc_b)
r = m.match(a, b)
r.idx      # (n, 2) int32: keypoint of a, keypoint of b
r.score    # (n,) in (0, 1]

FlexGlue

FlexGlue describes whole images once, then matches any keypoints of them and predicts, for every keypoint, where it lands in the other image. It also says which pairs of a set are worth matching.

m = jmt.Matcher("flexglue.pth", backend="cuda", precision="fp16")
a, b = m.describe(image_a), m.describe(image_b)  # uint8 (h, w), (h, w, 3) RGB or (h, w, 4) RGBA
r = m.match(a, b, xy_a, xy_b)
r.a_in_b, r.conf_a, r.covisibility

features = [m.describe(img) for img in images]
pairs, scores = m.shortlist(features, k=10, neighbours=2)  # (n, 2) image indices, best first
m.covisibility(a, b, level=2)

match_batch([(a, b), (c, d, xy_c, xy_d), ...]) matches many pairs in one call (pipelined on a GPU). Options of match and match_batch (n_layers, filter_threshold, depth_confidence, min_covisibility, ...) are keyword arguments, documented in help(jmt.Matcher.match).

Pixel coordinates are those of the original image: x right, y down, (0, 0) the centre of the top-left pixel. A Matcher is safe to share between threads (calls take turns); separate Matchers run in parallel.

jmt.compiled_backends() lists the backends of the installed package, jmt.VARIANT and jmt.CUDA_VERSION say which package it is.

Licence: Apache-2.0. No weights are in the package; each model's weights carry their own licence (above).

Metadata

Release files for just-matching 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for just-matching 0.1.1
File Size Uploaded Provenance Actions
just_matching-0.1.1.tar.gz 336.0 kB With provenance Details for just_matching-0.1.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for just-matching 0.1.1
File Interpreter ABI Platform Actions
just_matching-0.1.1-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for just_matching-0.1.1-cp312-abi3-win_amd64.whl
just_matching-0.1.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for just_matching-0.1.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
just_matching-0.1.1-cp312-abi3-macosx_13_0_arm64.whl CPython 3.12 abi3 macOS 13.0+ ARM64 Details for just_matching-0.1.1-cp312-abi3-macosx_13_0_arm64.whl

Total release size: 1.3 MB

Release files / just_matching-0.1.1.tar.gz

Download URL just_matching-0.1.1.tar.gz
Size 336.0 kB
Tags Source
SHA-256 checksum
How to use checksums
31509ad6d494a08815c89a766c2caac3c59ed3fa9e4088b3fbd5e4483b897e7a
BLAKE2b-256 checksum
How to use checksums
87167700a3e7b2b75a5247934454eef65c8393c928c2407f99f02f7aad68c4f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / just_matching-0.1.1-cp312-abi3-win_amd64.whl

Download URL just_matching-0.1.1-cp312-abi3-win_amd64.whl
Size 408.8 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c7d2091cd0ac992697d9945d2259199300a08e2f69aafedd77a27396016ac384
BLAKE2b-256 checksum
How to use checksums
17ab3e3c2bac86f2e467bfb75d2c5cf990251378474f9ed4d613d28866754b4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / just_matching-0.1.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL just_matching-0.1.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 276.6 kB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
b6e74816ba472ae51fbd1344b9e3c746e9717d370c3d579a3e5e9b855d95a0d6
BLAKE2b-256 checksum
How to use checksums
f7d1d7024a1d0eb5ef32f8533b117dcc13d87acd402ef0b25bbf261f549991e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / just_matching-0.1.1-cp312-abi3-macosx_13_0_arm64.whl

Download URL just_matching-0.1.1-cp312-abi3-macosx_13_0_arm64.whl
Size 275.0 kB
Tags CPython 3.12 abi3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
7ae2079a1b6302d8a06043a1c79c94e8fe2d0e7801637ecd91c1b29068af4f7e
BLAKE2b-256 checksum
How to use checksums
74278fc80f7f49dcdd01b73a49397015a46a393aca603935589f6cee843cfb2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for just-matching 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for just_matching-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page