No project description provided
Project description
DINO-MatchSim
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
- Computes patch-level DINOv3 features from the input (pre-edit) images.
- Builds foreground-filtered mutual nearest-neighbour correspondences across all image pairs.
- Measures feature similarity at those fixed correspondence locations in the output (post-edit) images.
- Returns
exp((S̄ − 1) / τ)whereS̄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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2ab3508646cd78180ca0f86529c5d1e3e858f4632514a0b0304bb44dfaf0450
|
|
| MD5 |
a69f664790916fdad602d34d43c8e058
|
|
| BLAKE2b-256 |
6ccfc02ba320ad21e4b0202d868bcda292bc5272f3e7799480295343fc7f4577
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
441bcd6c9660d08147d3d76059e90e12a2f3357bc91621e23e0282273bbbbd59
|
|
| MD5 |
5bf0c4db6a668c9206cd7aafa13e366b
|
|
| BLAKE2b-256 |
48a6dd6148955b64dd8aa5b57b7934db7827b256a7162e7c9a1bf3fbc56d8481
|