Skip to main content

DINO-MatchSim

arXiv Project Page

Multi-view consistency metric proposed in "Match-and-Fuse: Consistent Generation from Unstructured Image Sets".

Installation

pip install dino-matchsim[bg]

# Without foreground segmentation
pip install dino-matchsim

Usage

from PIL import Image
from dino_matchsim import dino_matchsim_score, DinoMatchSimCfg, BgCfg

input_images  = [Image.open(p) for p in input_paths]   # before edit
output_images = [Image.open(p) for p in output_paths]  # after edit

results = dino_matchsim_score(
    input_images, output_images,
    cfg=DinoMatchSimCfg(tau=0.6, sim_thresh=0.5),  # optional
    bg_cfg=BgCfg(remove_bg=True),                  # optional
    viz_dir="overlays/",                           # optional: save match overlays
)
print(results["dino_matchsim_output"])  # consistency score in (0, 1]
print(results["dino_matchsim_input"])   # baseline (input upper bound)

See DinoMatchSimCfg and BgCfg for all options.

How it works

DINO-MatchSim

  1. Computes patch-level DINOv3 features from the input (pre-edit) images.
  2. Builds foreground-filtered mutual nearest-neighbour correspondences across all image pairs.
  3. Measures feature similarity at those fixed correspondence locations in the output (post-edit) images.
  4. Returns exp((S̄ − 1) / τ) where S̄ is the mean cosine similarity — higher is more consistent.

Citation

If you use this metric, please cite:

@inproceedings{matchandfuse2026,
  title={Match-and-Fuse: Consistent Generation from Unstructured Image Sets},
  author={Feingold, Kate and Kaduri, Omri and Dekel, Tali},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
  year={2026}
}

Metadata

Release files for dino-matchsim 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 dino-matchsim 0.1.1
File Size Uploaded Provenance
dino_matchsim-0.1.1.tar.gz 10.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dino-matchsim 0.1.1
File Interpreter ABI Platform
dino_matchsim-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.0 kB

Release files / dino_matchsim-0.1.1.tar.gz

Download URL dino_matchsim-0.1.1.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d734f4dfee756fc6bc30a709152c3330e1f687c5693664083b261141cc46ed30
BLAKE2b-256 checksum
How to use checksums
12f6f4327da2115611f3864727be0cbea3d92485174ee4f290715c6053342a8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / dino_matchsim-0.1.1-py3-none-any.whl

Download URL dino_matchsim-0.1.1-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0afa7b776069ac51a4fb1af4fd9a12f85d56151e6e3208482980b82c28c1242
BLAKE2b-256 checksum
How to use checksums
6ec6a37dc3d10164f2a139c4f68a651838d94deb94353682946422300e08005d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Security for dino-matchsim 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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