Skip to main content

No project description provided

Project description

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 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}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dino_matchsim-0.1.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dino_matchsim-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file dino_matchsim-0.1.0.tar.gz.

File metadata

  • Download URL: dino_matchsim-0.1.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for dino_matchsim-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e2ab3508646cd78180ca0f86529c5d1e3e858f4632514a0b0304bb44dfaf0450
MD5 a69f664790916fdad602d34d43c8e058
BLAKE2b-256 6ccfc02ba320ad21e4b0202d868bcda292bc5272f3e7799480295343fc7f4577

See more details on using hashes here.

File details

Details for the file dino_matchsim-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dino_matchsim-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for dino_matchsim-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 441bcd6c9660d08147d3d76059e90e12a2f3357bc91621e23e0282273bbbbd59
MD5 5bf0c4db6a668c9206cd7aafa13e366b
BLAKE2b-256 48a6dd6148955b64dd8aa5b57b7934db7827b256a7162e7c9a1bf3fbc56d8481

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page