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.1.tar.gz (10.8 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.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dino_matchsim-0.1.1.tar.gz
  • Upload date:
  • Size: 10.8 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.1.tar.gz
Algorithm Hash digest
SHA256 d734f4dfee756fc6bc30a709152c3330e1f687c5693664083b261141cc46ed30
MD5 4883f866b9ba9f261bf834d6f35dc5e3
BLAKE2b-256 12f6f4327da2115611f3864727be0cbea3d92485174ee4f290715c6053342a8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dino_matchsim-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0afa7b776069ac51a4fb1af4fd9a12f85d56151e6e3208482980b82c28c1242
MD5 17025837a883fde4ee76ccca08772f2b
BLAKE2b-256 6ec6a37dc3d10164f2a139c4f68a651838d94deb94353682946422300e08005d

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