Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

A Tale of Two Features: Stable Diffusion Complements DINO for Zero-Shot Semantic Correspondence

About

Text-to-image diffusion models have made significant advances in generating and editing high-quality images. As a result, numerous approaches have explored the ability of diffusion model features to understand and process single images for downstream tasks, e.g., classification, semantic segmentation, and stylization. However, significantly less is known about what these features reveal across multiple, different images and objects. In this work, we exploit Stable Diffusion (SD) features for semantic and dense correspondence and discover that with simple post-processing, SD features can perform quantitatively similar to SOTA representations. Interestingly, the qualitative analysis reveals that SD features have very different properties compared to existing representation learning features, such as the recently released DINOv2: while DINOv2 provides sparse but accurate matches, SD features provide high-quality spatial information but sometimes inaccurate semantic matches. We demonstrate that a simple fusion of these two features works surprisingly well, and a zero-shot evaluation using nearest neighbors on these fused features provides a significant performance gain over state-of-the-art methods on benchmark datasets, e.g., SPair-71k, PF-Pascal, and TSS. We also show that these correspondences can enable interesting applications such as instance swapping in two images.

Junyi Zhang, Charles Herrmann, Junhwa Hur, Luisa Polania Cabrera, Varun Jampani, Deqing Sun, Ming-Hsuan Yang• 2023

Related benchmarks

TaskDatasetResultRank
Semantic CorrespondenceSPair-71k (test)
PCK@0.174.6
122
Semantic CorrespondencePF-WILLOW
PCK@0.1 (bbox)72
109
Semantic CorrespondencePF-PASCAL
PCK @ alpha=0.193.6
98
Point TrackingDAVIS TAP-Vid
Average Jaccard (AJ)29.68
41
Keypoint TransferSPair-71k (test)
Bicycle64.1
38
Point TrackingTAP-Vid Kinetics
Overall Accuracy62.79
37
Geometric MatchingHPatches 240 x 240
AEE (I)13.98
33
Geometric MatchingHPatches Original Resolution 3
AEPE Threshold I48.99
31
Semantic CorrespondenceSPair-71k
Φ_bbox @ α=0.159.3
29
Semantic MatchingTSS
PCK (FG)94.3
24
Showing 10 of 28 rows

Other info

Code

Follow for update